Skip to content
Snippets Groups Projects
Commit d540455c authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Fire global event onNewVersion when new version of cordova is available

parent b4b994ac
No related branches found
No related tags found
No related merge requests found
...@@ -208,6 +208,7 @@ Autoupdate._retrySubscription = function () { ...@@ -208,6 +208,7 @@ Autoupdate._retrySubscription = function () {
var checkNewVersionDocument = function (doc) { var checkNewVersionDocument = function (doc) {
var self = this; var self = this;
if (doc.version !== autoupdateVersionCordova) { if (doc.version !== autoupdateVersionCordova) {
window.fireGlobalEvent('onNewVersion', doc.version)
onNewVersion(); onNewVersion();
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment