Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

refactor: use typeof as an operator

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