From 35c1e63baffa770837302931f91ce9e20032bcd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Mon, 23 Jan 2017 10:17:25 +0100 Subject: [PATCH] Determine platform first --- www/background-mode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/background-mode.js b/www/background-mode.js index 483b07c..b06c274 100644 --- a/www/background-mode.js +++ b/www/background-mode.js @@ -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({}); }); });