From 67cb7f996db27251c888ff6b57c46ea7a5eb320e Mon Sep 17 00:00:00 2001 From: Mahdi Dibaiee Date: Sun, 9 Feb 2014 22:00:35 +0330 Subject: [PATCH] Update check --- Web/js/main.js | 4 +--- Web/manifest-web.webapp | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Web/js/main.js b/Web/js/main.js index 816cbc7..c4d17a5 100644 --- a/Web/js/main.js +++ b/Web/js/main.js @@ -99,10 +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? ' + app.manifest.version + ' to ' + lapp.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'); ins.onsuccess = function() { alert('The app was installed successfuly'); diff --git a/Web/manifest-web.webapp b/Web/manifest-web.webapp index f641d16..1fb4597 100644 --- a/Web/manifest-web.webapp +++ b/Web/manifest-web.webapp @@ -1,7 +1,7 @@ { "name": "Sketchy Web", "description": "Free Sketch/Paint app", - "version": "1.2", + "version": "1.3", "default_locale": "en", "launch_path": "/Sketchy/Web/index.html", "icons": {