Fix warning
This commit is contained in:
parent
02770739b5
commit
1edc29c6fb
@ -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();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user