Skip to content

Commit

Permalink
Use clipboard API from Jetpack SDK trunk instead of third-party libra…
Browse files Browse the repository at this point in the history
…ry. Closes #6.
  • Loading branch information
Fred Wenzel committed Aug 18, 2010
1 parent 9904e7e commit 33b07bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var clipboard = require("clipboard").clipboard,
var clipboard = require("clipboard"),
contextMenu = require("context-menu"),
tabs = require("tabs"),
xhr = require("xhr");
Expand Down Expand Up @@ -39,7 +39,7 @@ exports.main = function() {
var item = contextMenu.Item({
label: 'Copy ShortURL',
onClick: function(ctx, item) {
url = findShortUrl(ctx);
var url = findShortUrl(ctx);
if (!url) {
url = createShortUrl(ctx);
}
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"description": "If a page exposes a short URL via a 'link rev=canonical' header, fetch it and copy it to the clipboard. If not, create a shorturl at tinyurl and copy it to the clipboard as well.",
"author": "Fred Wenzel <[email protected]>",
"dependencies": [
"jetpack-core",
"clipboard"
"jetpack-core"
],
"version": "0.1",
"fullName": "Copy Short URL",
Expand Down

0 comments on commit 33b07bd

Please sign in to comment.