diff --git a/functions/network.js b/functions/network.js index da7e9a817..63d04db5d 100644 --- a/functions/network.js +++ b/functions/network.js @@ -3,8 +3,6 @@ import FirefoxStrategy from "./strategies/FirefoxStrategy"; import ChromeStrategy, { hasChromeExtensionInstalled } from "./strategies/ChromeStrategy"; const isExtensionsAllowed = ({ state }) => { - console.log(typeof(state.postwoman.settings.EXTENSIONS_ENABLED) === 'undefined' - || state.postwoman.settings.EXTENSIONS_ENABLED); return typeof(state.postwoman.settings.EXTENSIONS_ENABLED) === 'undefined' || state.postwoman.settings.EXTENSIONS_ENABLED; } @@ -19,14 +17,14 @@ const runAppropriateStrategy = (req, store) => { // The firefox plugin injects a function to send requests through it // If that is available, then we can use the FirefoxStrategy if (window.firefoxExtSendRequest) { - return FirefoxStrategy(req, store); + return FirefoxStrategy(req, store); } } return AxiosStrategy(req, store); } -const sendNetworkRequest = (req, store) => +const sendNetworkRequest = (req, store) => runAppropriateStrategy(req, store) .finally(() => window.$nuxt.$loading.finish());