Fix warning

This commit is contained in:
Sebastián Katzer 2014-11-04 17:47:30 +00:00
parent 02770739b5
commit 1edc29c6fb

View File

@ -81,7 +81,11 @@ exports.configure = function (options) {
cordova.exec(null, null, 'BackgroundMode', 'configure', [settings]); cordova.exec(null, null, 'BackgroundMode', 'configure', [settings]);
settings.enable ? this.enable() : this.disable(); if (settings.enable) {
this.enable();
} else {
this.disable();
}
}; };
/** /**