From 8c136e63ae9ef1d641b8f6240bbeb92f4e46700c Mon Sep 17 00:00:00 2001
From: anekos
Date: Fri, 7 May 2010 16:48:25 +0000
Subject: 上書き確認の間違い修正
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37419 d0d07461-0603-4401-acd4-de1884942a52
---
stella.js | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
(limited to 'stella.js')
diff --git a/stella.js b/stella.js
index cdd6c76..6beb85a 100644
--- a/stella.js
+++ b/stella.js
@@ -39,7 +39,7 @@ let PLUGIN_INFO =
すてら
For Niconico/YouTube/Vimeo, Add control commands and information display(on status line).
ニコニコ動画/YouTube/Vimeo 用。操作コマンドと情報表示(ステータスライン上に)追加します。
- 0.30.0
+ 0.30.1
anekos
new BSD License (Please read the source code comments of this plugin)
修正BSDライセンス (ソースコードのコメントを参照してください)
@@ -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);
--
cgit v1.2.3