aboutsummaryrefslogtreecommitdiffstats
path: root/bitly.js
diff options
context:
space:
mode:
Diffstat (limited to 'bitly.js')
-rw-r--r--bitly.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/bitly.js b/bitly.js
index e0574c1..d39af89 100644
--- a/bitly.js
+++ b/bitly.js
@@ -93,7 +93,7 @@ let PLUGIN_INFO =
);
}
- function jmp (uri, domain, callback) {
+ function shorten (uri, domain, callback) {
function get () {
let req = new XMLHttpRequest();
req.onreadystatechange = function () {
@@ -136,7 +136,7 @@ let PLUGIN_INFO =
[name],
'Copy ' + domain + ' url',
function (args) {
- jmp(args.literalArg || buffer.URL, domain, function (short) {
+ shorten(args.literalArg || buffer.URL, domain, function (short) {
util.copyToClipboard(short);
liberator.echo('`' + short + "' was copied to clipboard.");
});
@@ -151,8 +151,8 @@ let PLUGIN_INFO =
},
true
);
+ __context__[name] = function (url, callback) shorten(url, domain, callback);
});
- __context__.get = jmp;
-
+ __context__.get = shorten;
})();