changeset 44:6a38739058a7

changed refresh interval at which localstorage is polled to 2s.
author Atul Varma <avarma@mozilla.com>
date Sat, 26 Jun 2010 17:39:01 -0700
parents 5b8600135a4f
children 50170011cc07
files static-files/index.js
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/static-files/index.js	Sat Jun 26 17:31:06 2010 -0700
+++ b/static-files/index.js	Sat Jun 26 17:39:01 2010 -0700
@@ -7,6 +7,11 @@
 
 (
   function(window) {
+    // Amount of time, in milliseconds, that pass before we check
+    // to see if another instance of this page changed our persistent
+    // storage.
+    const REFRESH_INTERVAL = 2000;
+
     var Config = window.Config = {
       get value() {
         var val = localStorage.getItem("SUMMIT_CFG");
@@ -57,7 +62,7 @@
           if (Config.lastChanged > lastChanged)
             Config.observers.forEach(function(cb) { cb(); });
         },
-        1000
+        REFRESH_INTERVAL
       );
     }