mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2024-11-21 23:04: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
|
// Called before 'deviceready' listener will be called
|
||||||
channel.onCordovaReady.subscribe(function () {
|
channel.onCordovaReady.subscribe(function () {
|
||||||
channel.onCordovaInfoReady.subscribe(function () {
|
channel.onCordovaInfoReady.subscribe(function () {
|
||||||
exports.setDefaults({});
|
|
||||||
exports._isAndroid = device.platform.match(/^android|amazon/i) !== null;
|
exports._isAndroid = device.platform.match(/^android|amazon/i) !== null;
|
||||||
|
exports.setDefaults({});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user