diff options
| author | czaks <marcin@6irc.net> | 2013-12-29 02:07:38 +0100 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-12-29 02:07:38 +0100 |
| commit | 095378a98f6c3a6db42cb79f5c7d697054f6bb49 (patch) | |
| tree | ee5fdaa7dce0766ccb3e5494139e3c4945ef6588 | |
| parent | e880c8b542d72d6f711a8ee08185a6b2ad3e47e0 (diff) | |
watch.js: fix on firefox: we used a reserved word
| -rw-r--r-- | js/watch.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/js/watch.js b/js/watch.js index e9d73890..fb961411 100644 --- a/js/watch.js +++ b/js/watch.js @@ -1,4 +1,7 @@ $(function(){ + // migrate from old name + if (typeof localStorage.watch == "string") { localStorage.watch_js = localStorage.watch; } + var status = {}; time_loaded = Date.now(); @@ -6,11 +9,11 @@ $(function(){ var updating_suspended = false; var storage = function() { - return JSON.parse(localStorage.watch !== undefined ? localStorage.watch : "{}"); + return JSON.parse(localStorage.watch_js !== undefined ? localStorage.watch_js : "{}"); }; var storage_save = function(s) { - localStorage.watch = JSON.stringify(s); + localStorage.watch_js = JSON.stringify(s); }; var osize = function(o) { |
