Browse Source

Fixed get changelog

master
Igor Zhukov 7 years ago
parent
commit
1c9e6fe42a
  1. 4
      app/js/services.js

4
app/js/services.js

@ -4350,6 +4350,9 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) @@ -4350,6 +4350,9 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
$timeout(function () {
Storage.get('last_version').then(function (lastVersion) {
if (lastVersion != Config.App.version) {
if (!lastVersion) {
Storage.set({last_version: Config.App.version})
} else {
MtpApiManager.invokeApi('help.getAppChangelog', {
prev_app_version: lastVersion
}, {
@ -4362,6 +4365,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) @@ -4362,6 +4365,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
Storage.set({last_version: Config.App.version})
})
}
}
})
}, 5000)
})

Loading…
Cancel
Save