From d2f96774be73857c1e074160f847ea041ad7f112 Mon Sep 17 00:00:00 2001 From: Mahdi Dibaiee Date: Sun, 9 Feb 2014 21:23:02 +0330 Subject: [PATCH] Update check --- Web/js/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Web/js/main.js b/Web/js/main.js index cbf5d8e..e63e680 100644 --- a/Web/js/main.js +++ b/Web/js/main.js @@ -96,6 +96,8 @@ $(document).ready(function() { latest.onsuccess = function() { if( this.response ) { var lapp = JSON.parse(this.response); + console.log(lapp.version); + 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');