mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2024-11-14 11:34:54 +00:00
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