Manually fire enable event on iOS WebKit after deviceready event
This commit is contained in:
parent
e2a8ab038a
commit
0ed766a91c
@ -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');
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user