diff options
author | anekos | 2010-05-07 16:48:25 +0000 |
---|---|---|
committer | anekos | 2010-05-07 16:48:25 +0000 |
commit | 8c136e63ae9ef1d641b8f6240bbeb92f4e46700c (patch) | |
tree | fb2885f2723d0893c0c1463264b72a36a4d8f364 /stella.js | |
parent | 1d69bec9d9f528f55928659886cc8d9657e5f0fa (diff) | |
download | vimperator-plugins-8c136e63ae9ef1d641b8f6240bbeb92f4e46700c.tar.bz2 |
上書き確認の間違い修正
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37419 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'stella.js')
-rw-r--r-- | stella.js | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -39,7 +39,7 @@ let PLUGIN_INFO = <name lang="ja">すてら</name> <description>For Niconico/YouTube/Vimeo, Add control commands and information display(on status line).</description> <description lang="ja">ニコニコ動画/YouTube/Vimeo 用。操作コマンドと情報表示(ステータスライン上に)追加します。</description> - <version>0.30.0</version> + <version>0.30.1</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> @@ -321,13 +321,13 @@ Thanks: } else { file = dm.userDownloadsDirectory; } - if (file.exists()) { - if (file.isDirectory() && title) { + + if (file.exists() && file.isDirectory() && title) file.appendRelativePath(U.fixFilename(title) + ext); - } else { - return U.echoerr('The file already exists! -> ' + file.path); - } - } + + if (file.exists()) + return U.echoerr('The file already exists! -> ' + file.path); + file = makeFileURI(file); let dl = dm.addDownload(0, U.makeURL(url, null, null), file, title, null, null, null, null, wbp); |