From c803cbaf58bca97c00e5c2fa8550814e70393ee2 Mon Sep 17 00:00:00 2001 From: anekos Date: Mon, 10 May 2010 21:59:12 +0000 Subject: nyaaaps git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37446 d0d07461-0603-4401-acd4-de1884942a52 --- bitly.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitly.js') 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 = bit.ly Get short alias by bit.ly and j.mp bit.ly や j.mp で短縮URLを得る - 2.0.2 + 2.0.3 anekos new BSD License (Please read the source code comments of this plugin) 修正BSDライセンス (ソースコードのコメントを参照してください) @@ -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); -- cgit v1.2.3