From 1c289f7d01f46c04cd9341d967932f90b51a82e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Sat, 13 Dec 2014 23:01:38 +0100 Subject: [PATCH] Fix default overrides custom settings 2 Solves issue #43 --- www/background-mode.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/www/background-mode.js b/www/background-mode.js index f625a92..e11e2ed 100644 --- a/www/background-mode.js +++ b/www/background-mode.js @@ -28,8 +28,11 @@ document.addEventListener('backbutton', function () {}, false); // Called before 'deviceready' listener will be called channel.onCordovaReady.subscribe(function () { - // Set the default settings - exports.configure(); + // Device plugin is ready now + channel.onCordovaInfoReady.subscribe( function () { + // Set the defaults + exports.configure(); + }); // Only enable WP8 by default if (['WinCE', 'Win32NT'].indexOf(device.platform) > -1) {