mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2024-11-14 19:44:53 +00:00
Ensure boolean return type
This commit is contained in:
parent
626776f60b
commit
af5da60143
@ -105,7 +105,7 @@ exports.disableWebViewOptimizations = function () {
|
|||||||
* @return {Boolean}
|
* @return {Boolean}
|
||||||
*/
|
*/
|
||||||
exports.isEnabled = function () {
|
exports.isEnabled = function () {
|
||||||
return this._isEnabled;
|
return this._isEnabled !== false;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -114,7 +114,7 @@ exports.isEnabled = function () {
|
|||||||
* @return {Boolean}
|
* @return {Boolean}
|
||||||
*/
|
*/
|
||||||
exports.isActive = function () {
|
exports.isActive = function () {
|
||||||
return this._isActive;
|
return this._isActive !== false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user