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 @@ ...@@ -5,12 +5,18 @@
function redirect_version() { function redirect_version() {
document.location.replace("${latest_version}/" + document.location.hash) document.location.replace("${latest_version}/" + document.location.hash)
}; };
window.applicationCache.addEventListener('cached',redirect_version);
window.applicationCache.addEventListener('noupdate',redirect_version); var timeout_duration = 10000;
window.applicationCache.addEventListener('error',redirect_version); try {
window.applicationCache.addEventListener('updateready', function(){window.location.reload()}); window.applicationCache.addEventListener('cached',redirect_version);
// XXX This is a hack for when the network is too slow. window.applicationCache.addEventListener('noupdate',redirect_version);
window.setTimeout(redirect_version, 10000); window.applicationCache.addEventListener('error',redirect_version);
window.applicationCache.addEventListener('updateready', function(){window.location.reload()});
} 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> </script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>959.46608.34939.31368</string> </value> <value> <string>984.41193.2075.29252</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -266,7 +266,7 @@ ...@@ -266,7 +266,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1497604340.46</float> <float>1599639175.46</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </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