From af5da601439666a2cd024408a7e515e80ef036dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Tue, 3 Jan 2017 21:14:24 +0100 Subject: [PATCH] Ensure boolean return type --- www/background-mode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/background-mode.js b/www/background-mode.js index 622859e..c2cf995 100644 --- a/www/background-mode.js +++ b/www/background-mode.js @@ -105,7 +105,7 @@ exports.disableWebViewOptimizations = function () { * @return {Boolean} */ exports.isEnabled = function () { - return this._isEnabled; + return this._isEnabled !== false; }; /** @@ -114,7 +114,7 @@ exports.isEnabled = function () { * @return {Boolean} */ exports.isActive = function () { - return this._isActive; + return this._isActive !== false; };