Skip to content
Snippets Groups Projects
Commit 5889c620 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento Committed by Gabriel Engel
Browse files

Fire global event onNewVersion when new version of cordova is available

parent ba8ce185
No related branches found
No related tags found
No related merge requests found
......@@ -208,6 +208,7 @@ Autoupdate._retrySubscription = function () {
var checkNewVersionDocument = function (doc) {
var self = this;
if (doc.version !== autoupdateVersionCordova) {
window.fireGlobalEvent('onNewVersion', doc.version)
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