From e3756ec3aa5f04c87f5f1fd532529752843bce55 Mon Sep 17 00:00:00 2001 From: Mahdi Dibaiee Date: Sun, 9 Feb 2014 21:27:42 +0330 Subject: [PATCH] Update check --- Web/js/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Web/js/main.js b/Web/js/main.js index 8ea2568..6df0a7a 100644 --- a/Web/js/main.js +++ b/Web/js/main.js @@ -100,12 +100,13 @@ $(document).ready(function() { console.log(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'); } ins.onerror = function() { alert('There was an error installing app') + console.log(this.error); } } } @@ -117,6 +118,7 @@ $(document).ready(function() { } ins.onerror = function() { alert('There was an error installing app') + console.log(this.error); } } }