# HG changeset patch # User Atul Varma # Date 1277599141 25200 # Node ID 6a38739058a760d5ecb2f92d3d52aa0cee0b8dd1 # Parent 5b8600135a4fc8c4938f8159aab9c6b0a9c4c2d3 changed refresh interval at which localstorage is polled to 2s. diff -r 5b8600135a4f -r 6a38739058a7 static-files/index.js --- 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 ); }