refactor: use typeof as an operator
This commit is contained in:
parent
910c20bd00
commit
8b00bb59de
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue