Experiments with appcache part 24

This commit is contained in:
Yord 2015-03-24 22:48:32 +01:00
parent a8d8bcdc86
commit 67d39d2dc9
2 changed files with 4 additions and 3 deletions

View file

@ -48,7 +48,9 @@
<script type="text/javascript">
(function(){
var webappCache = window.applicationCache;
webappCache.addEventListener("updateready", function() { webappCache.swapCache(); }, false);
if (webappCache) {
webappCache.addEventListener("updateready", function() { webappCache.update(); webappCache.swapCache(); }, false);
}
})();
</script>
</body>