From 0e561e7bc2583f5b29c90ce97a3886c775d07a64 Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Tue, 4 Feb 2020 19:01:26 +0000 Subject: [PATCH] Removed logging --- functions/network.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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());