Fix default overrides custom settings 2

Solves issue #43
This commit is contained in:
Sebastián Katzer 2014-12-13 23:01:38 +01:00
parent 99dac5b396
commit 1c289f7d01

View File

@ -28,8 +28,11 @@ document.addEventListener('backbutton', function () {}, false);
// Called before 'deviceready' listener will be called // Called before 'deviceready' listener will be called
channel.onCordovaReady.subscribe(function () { channel.onCordovaReady.subscribe(function () {
// Set the default settings // Device plugin is ready now
exports.configure(); channel.onCordovaInfoReady.subscribe( function () {
// Set the defaults
exports.configure();
});
// Only enable WP8 by default // Only enable WP8 by default
if (['WinCE', 'Win32NT'].indexOf(device.platform) > -1) { if (['WinCE', 'Win32NT'].indexOf(device.platform) > -1) {