From 42a1553a5ed9de54c58ced2460eaaabcd449a0b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Thu, 4 Dec 2014 14:19:38 +0100 Subject: [PATCH] Fix bug which enabled plugin by default on all platforms --- 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 18ccdd3..eed1445 100644 --- a/www/background-mode.js +++ b/www/background-mode.js @@ -31,7 +31,7 @@ channel.deviceready.subscribe(function () { exports.configure(); // Only enable WP8 by default - if (['WinCE', 'Win32NT'].indexOf(device.platform)) { + if (['WinCE', 'Win32NT'].indexOf(device.platform) > -1) { exports.enable(); } });