diff options
author | anekos | 2009-11-02 10:00:42 +0000 |
---|---|---|
committer | anekos | 2009-11-02 10:00:42 +0000 |
commit | db24ae5afa00146ae709a44a28a65adf400f1aa8 (patch) | |
tree | c25a045a9a5cbd333c25ac5fdc7b7ae15c0968e2 /auto_reload.js | |
parent | b059bd7607fb1c13133b69fd42a9f1f8456ef4c0 (diff) | |
download | vimperator-plugins-db24ae5afa00146ae709a44a28a65adf400f1aa8.tar.bz2 |
Follow HEAD (2.3pre)
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@35833 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'auto_reload.js')
-rw-r--r-- | auto_reload.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/auto_reload.js b/auto_reload.js index c959529..af02616 100644 --- a/auto_reload.js +++ b/auto_reload.js @@ -39,12 +39,12 @@ let PLUGIN_INFO = <name lang="ja">自動リロード</name> <description>Watch local file, and automatically reload current page when the file is modified.</description> <description lang="ja">ローカルのファイルを監視して、現在のページをリロードする</description> - <version>1.0.0</version> + <version>1.0.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> - <minVersion>2.0pre</minVersion> - <maxVersion>2.0pre</maxVersion> + <minVersion>2.3pre</minVersion> + <maxVersion>2.3pre</maxVersion> <detail><![CDATA[ 制作中 ]]></detail> @@ -68,13 +68,13 @@ let PLUGIN_INFO = let func = reload = function () tabs.reload(tab); let time = parseInt(parseFloat(args[0] || 1) * 1000); - let (file = io.getFile(args.string)) { + let (file = io.File(args.string)) { if (file.exists() && file.isFile()) { let filepath = file.path; storage.lastModifiedTime = file.lastModifiedTime; time = 200; func = function () { - let file = io.getFile(filepath); + let file = io.File(filepath); let mt = file.lastModifiedTime; if (storage.lastModifiedTime == mt) return; |