summaryrefslogtreecommitdiffstats
path: root/zalmy.ts
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2014-02-25 18:58:52 +0100
committerMatěj Cepl <mcepl@redhat.com>2014-02-25 18:58:52 +0100
commit2177066ade62492f9acd0018243eefd378563292 (patch)
treebb810039d7f2203fa8618fe8ade4c0e7c0925f0f /zalmy.ts
parent12fab20def379d669e8c8acd45d428361d7fb6c0 (diff)
downloadzalmy-2177066ade62492f9acd0018243eefd378563292.tar.gz
Make the application reload automatically on the update.
Diffstat (limited to 'zalmy.ts')
-rw-r--r--zalmy.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/zalmy.ts b/zalmy.ts
index f0b1245..56ec610 100644
--- a/zalmy.ts
+++ b/zalmy.ts
@@ -55,6 +55,10 @@ class Psalm {
this.swipe_pos_y = 0;
}, false);
+ applicationCache.addEventListener("updateready",
+ () => { location.reload(); }
+ );
+
this.display();
}