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; diff --git a/manifest.json.php b/manifest.json.php new file mode 100644 index 000000000..22ea4cda2 --- /dev/null +++ b/manifest.json.php @@ -0,0 +1,96 @@ + $mtime) { + $mtime_max = $tmp; + } + + array_push($manifest_formatted, "{ \"url\": \"$f\" }"); + } +?> + +{ + "betaManifestVersion": 1, + "version": "", + "entries": [ + + ] +} diff --git a/offline.js b/offline.js index f20559f2f..e6b77ed77 100644 --- a/offline.js +++ b/offline.js @@ -974,7 +974,7 @@ function init_gears() { if (window.google && google.gears) { localServer = google.gears.factory.create("beta.localserver"); store = localServer.createManagedStore("tt-rss"); - store.manifestUrl = "manifest.json"; + store.manifestUrl = "manifest.json.php"; store.checkForUpdate(); db = google.gears.factory.create('beta.database');