mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2024-11-14 19:44:53 +00:00
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]);
|
||||
|
||||
settings.enable ? this.enable() : this.disable();
|
||||
if (settings.enable) {
|
||||
this.enable();
|
||||
} else {
|
||||
this.disable();
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user