aboutsummaryrefslogtreecommitdiffstats
path: root/bitly.js
diff options
context:
space:
mode:
authoranekos2010-05-10 21:59:12 +0000
committeranekos2010-05-10 21:59:12 +0000
commitc803cbaf58bca97c00e5c2fa8550814e70393ee2 (patch)
tree9459cec0d04a934cf5d356f81dec965dab0f77ca /bitly.js
parentf14eff524991ebd8aa480105952aaae363d63a11 (diff)
downloadvimperator-plugins-c803cbaf58bca97c00e5c2fa8550814e70393ee2.tar.bz2
nyaaaps
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37446 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'bitly.js')
-rw-r--r--bitly.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitly.js b/bitly.js
index f0d8103..cf7b633 100644
--- a/bitly.js
+++ b/bitly.js
@@ -38,7 +38,7 @@ let PLUGIN_INFO =
<name>bit.ly</name>
<description>Get short alias by bit.ly and j.mp</description>
<description lang="ja">bit.ly や j.mp で短縮URLを得る</description>
- <version>2.0.2</version>
+ <version>2.0.3</version>
<author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author>
<license>new BSD License (Please read the source code comments of this plugin)</license>
<license lang="ja">修正BSDライセンス (ソースコードのコメントを参照してください)</license>
@@ -141,7 +141,7 @@ let PLUGIN_INFO =
[name],
'Copy ' + domain + ' url',
function (args) {
- let url = args.literalArg && util.stringToURLArray(args.literalArg)[0];
+ let url = args.literalArg ? util.stringToURLArray(args.literalArg)[0] : buffer.URL;
shorten(url, domain, function (short) {
util.copyToClipboard(short);