Update check
This commit is contained in:
parent
96b4b5f396
commit
8877ea6c6c
@ -100,7 +100,7 @@ $(document).ready(function() {
|
|||||||
console.log(app.manifest.version);
|
console.log(app.manifest.version);
|
||||||
if( lapp.version != app.manifest.version &&
|
if( lapp.version != app.manifest.version &&
|
||||||
confirm('A new version of this app is available, do you want to update? ' + app.manifest.version + ' to ' + lapp.version )) {
|
confirm('A new version of this app is available, do you want to update? ' + app.manifest.version + ' to ' + lapp.version )) {
|
||||||
var ins = app.install('http://mdibaiee.github.io/Sketchy/Web/manifest-web.webapp');
|
var ins = navigator.mozApps.install('http://mdibaiee.github.io/Sketchy/Web/manifest-web.webapp');
|
||||||
ins.onsuccess = function() {
|
ins.onsuccess = function() {
|
||||||
alert('The app was installed successfuly');
|
alert('The app was installed successfuly');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user