Determine platform first

This commit is contained in:
Sebastián Katzer 2017-01-23 10:17:25 +01:00
parent e4ae47505b
commit 35c1e63baf

View File

@ -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({});
});
});