From db24ae5afa00146ae709a44a28a65adf400f1aa8 Mon Sep 17 00:00:00 2001 From: anekos Date: Mon, 2 Nov 2009 10:00:42 +0000 Subject: Follow HEAD (2.3pre) git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@35833 d0d07461-0603-4401-acd4-de1884942a52 --- auto_reload.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'auto_reload.js') 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 = 自動リロード Watch local file, and automatically reload current page when the file is modified. ローカルのファイルを監視して、現在のページをリロードする - 1.0.0 + 1.0.1 anekos new BSD License (Please read the source code comments of this plugin) 修正BSDライセンス (ソースコードのコメントを参照してください) - 2.0pre - 2.0pre + 2.3pre + 2.3pre @@ -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; -- cgit v1.2.3