From 8b00bb59de30b0dec65649df7772d5961beb1a29 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Fri, 7 Feb 2020 14:43:13 +0530 Subject: [PATCH] refactor: use typeof as an operator --- functions/network.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/network.js b/functions/network.js index 63d04db5d..9294ba036 100644 --- a/functions/network.js +++ b/functions/network.js @@ -3,7 +3,7 @@ import FirefoxStrategy from "./strategies/FirefoxStrategy"; import ChromeStrategy, { hasChromeExtensionInstalled } from "./strategies/ChromeStrategy"; const isExtensionsAllowed = ({ state }) => { - return typeof(state.postwoman.settings.EXTENSIONS_ENABLED) === 'undefined' + return typeof state.postwoman.settings.EXTENSIONS_ENABLED === 'undefined' || state.postwoman.settings.EXTENSIONS_ENABLED; }