Commit 8a1d7839 authored by Romain Courteaud's avatar Romain Courteaud

erp5_officejs_appstore_base: appcache API has been dropped from chrome

parent d8746243
......@@ -5,12 +5,18 @@
function redirect_version() {
document.location.replace("${latest_version}/" + document.location.hash)
};
var timeout_duration = 10000;
try {
window.applicationCache.addEventListener('cached',redirect_version);
window.applicationCache.addEventListener('noupdate',redirect_version);
window.applicationCache.addEventListener('error',redirect_version);
window.applicationCache.addEventListener('updateready', function(){window.location.reload()});
// XXX This is a hack for when the network is too slow.
window.setTimeout(redirect_version, 10000);
} catch (e) {
timeout_duration = 1;
}
// XXX This is a hack for when the network is too slow, or if appcache is not supported anymore
window.setTimeout(redirect_version, timeout_duration);
</script>
</body>
</html>
\ No newline at end of file
......@@ -248,7 +248,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>959.46608.34939.31368</string> </value>
<value> <string>984.41193.2075.29252</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -266,7 +266,7 @@
</tuple>
<state>
<tuple>
<float>1497604340.46</float>
<float>1599639175.46</float>
<string>UTC</string>
</tuple>
</state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment