summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-02-12 13:59:00 +0300
committerAndrew Dolgov <[email protected]>2009-02-12 13:59:00 +0300
commit0cd6bb46f7d8b8c11a8704603f9816e9f78d1ec9 (patch)
tree41981c9150e1ab67a3911541d2819f560b3c588e /functions.js
parent5fe4848b5a734bf48c118730af15d2497c1f3261 (diff)
offline: automatically set version of manifest.json (using filemtime)
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/functions.js b/functions.js
index 5c0564897..8355deb04 100644
--- a/functions.js
+++ b/functions.js
@@ -458,6 +458,13 @@ function parse_counters(reply, scheduled_call) {
var xmsg = elems[l].getAttribute("xmsg");
if (id == "global-unread") {
+
+ if (ctr > global_unread) {
+ if (db && getInitParam("offline_enabled") == "1") {
+ window.setTimeout("update_offline_data(0)", 100);
+ }
+ }
+
global_unread = ctr;
updateTitle();
continue;