mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2025-12-13 01:43:24 +00:00
Fix warning
This commit is contained in:
@@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user