diff options
author | Matěj Cepl <mcepl@redhat.com> | 2014-02-25 18:58:52 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2014-02-25 18:58:52 +0100 |
commit | 2177066ade62492f9acd0018243eefd378563292 (patch) | |
tree | bb810039d7f2203fa8618fe8ade4c0e7c0925f0f | |
parent | 12fab20def379d669e8c8acd45d428361d7fb6c0 (diff) | |
download | zalmy-2177066ade62492f9acd0018243eefd378563292.tar.gz |
Make the application reload automatically on the update.
-rw-r--r-- | zalmy.appcache | 2 | ||||
-rw-r--r-- | zalmy.js | 4 | ||||
-rw-r--r-- | zalmy.ts | 4 |
3 files changed, 9 insertions, 1 deletions
diff --git a/zalmy.appcache b/zalmy.appcache index d2db34e..c54efa2 100644 --- a/zalmy.appcache +++ b/zalmy.appcache @@ -1,5 +1,5 @@ CACHE MANIFEST -# v2 - 2014-02-24 +# v4 - 2014-02-25 index.html zalmy.js style/basic.css @@ -43,6 +43,10 @@ var Psalm = (function () { _this.swipe_pos_y = 0; }, false); + applicationCache.addEventListener("updateready", function () { + location.reload(); + }); + this.display(); } Object.defineProperty(Psalm.prototype, "cur_psalm", { @@ -55,6 +55,10 @@ class Psalm { this.swipe_pos_y = 0; }, false); + applicationCache.addEventListener("updateready", + () => { location.reload(); } + ); + this.display(); } |