Update manager
This commit is contained in:
parent
ca326e2625
commit
7efebcd18e
@ -1,5 +1,5 @@
|
||||
CACHE MANIFEST
|
||||
|
||||
# v1
|
||||
index.html
|
||||
js
|
||||
css
|
||||
|
@ -99,6 +99,8 @@ $(document).ready(function() {
|
||||
latest.onload = function() {
|
||||
if( this.response ) {
|
||||
var lapp = JSON.parse(this.response);
|
||||
alert(lapp.version);
|
||||
alert(app.manifest.version);
|
||||
if( lapp.version != app.manifest.version &&
|
||||
confirm('A new version of this app is available, do you want to update?')) {
|
||||
var ins = navigator.mozApps.install('http://mdibaiee.github.io/Sketchy/Web/manifest-web.webapp');
|
||||
|
Loading…
Reference in New Issue
Block a user