mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2024-11-14 19:44:53 +00:00
Determine platform first
This commit is contained in:
parent
e4ae47505b
commit
35c1e63baf
@ -347,8 +347,8 @@ exports._defaults = {
|
||||
// Called before 'deviceready' listener will be called
|
||||
channel.onCordovaReady.subscribe(function () {
|
||||
channel.onCordovaInfoReady.subscribe(function () {
|
||||
exports.setDefaults({});
|
||||
exports._isAndroid = device.platform.match(/^android|amazon/i) !== null;
|
||||
exports.setDefaults({});
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user