refactor: use typeof as an operator

This commit is contained in:
jamesgeorge007
2020-02-07 14:43:13 +05:30
parent 910c20bd00
commit 8b00bb59de

View File

@@ -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;
}