Update Manager

This commit is contained in:
Mahdi Dibaiee 2014-02-10 15:09:57 +03:30
parent 7efebcd18e
commit a67e9e6d0f

View File

@ -103,7 +103,7 @@ $(document).ready(function() {
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');
var ins = navigator.mozApps.install();
ins.onsuccess = function() {
alert('The app was installed successfuly');
}