Update check
This commit is contained in:
parent
aba73a08c6
commit
d2f96774be
@ -96,6 +96,8 @@ $(document).ready(function() {
|
|||||||
latest.onsuccess = function() {
|
latest.onsuccess = function() {
|
||||||
if( this.response ) {
|
if( this.response ) {
|
||||||
var lapp = JSON.parse(this.response);
|
var lapp = JSON.parse(this.response);
|
||||||
|
console.log(lapp.version);
|
||||||
|
console.log(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('http://mdibaiee.github.io/Sketchy/Web/manifest-web.webapp');
|
||||||
|
Loading…
Reference in New Issue
Block a user