Update Manager
This commit is contained in:
parent
7efebcd18e
commit
a67e9e6d0f
@ -103,7 +103,7 @@ $(document).ready(function() {
|
|||||||
alert(app.manifest.version);
|
alert(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?')) {
|
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');
|
var ins = navigator.mozApps.install();
|
||||||
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