From 92eb50de9ebcd6b42cd94b6c61f1b681cf29e19f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Tue, 11 Nov 2014 21:35:26 +0100 Subject: [PATCH] Allow at least enable: on other platforms --- www/background-mode.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/www/background-mode.js b/www/background-mode.js index 29140a8..5cdd190 100644 --- a/www/background-mode.js +++ b/www/background-mode.js @@ -76,10 +76,9 @@ exports.disable = function () { exports.configure = function (options) { var settings = this.mergeWithDefaults(options || {}); - if (device.platform != 'Android') - return; - - cordova.exec(null, null, 'BackgroundMode', 'configure', [settings]); + if (device.platform == 'Android') { + cordova.exec(null, null, 'BackgroundMode', 'configure', [settings]); + } if (settings.enable) { this.enable();