Manually fire enable event on iOS WebKit after deviceready event

This commit is contained in:
Sebastián Katzer 2017-01-19 10:57:28 +01:00
parent e2a8ab038a
commit 0ed766a91c

View File

@ -350,3 +350,10 @@ channel.onCordovaReady.subscribe(function () {
exports.setDefaults({});
});
});
// Called after 'deviceready' event
channel.deviceready.subscribe(function () {
if (window.webkit && exports.isEnabled()) {
exports.fireEvent('enable');
}
});