Removed logging

This commit is contained in:
Andrew Bastin
2020-02-04 19:01:26 +00:00
parent 257cb5141b
commit 0e561e7bc2

View File

@@ -3,8 +3,6 @@ import FirefoxStrategy from "./strategies/FirefoxStrategy";
import ChromeStrategy, { hasChromeExtensionInstalled } from "./strategies/ChromeStrategy"; import ChromeStrategy, { hasChromeExtensionInstalled } from "./strategies/ChromeStrategy";
const isExtensionsAllowed = ({ state }) => { 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' return typeof(state.postwoman.settings.EXTENSIONS_ENABLED) === 'undefined'
|| state.postwoman.settings.EXTENSIONS_ENABLED; || state.postwoman.settings.EXTENSIONS_ENABLED;
} }
@@ -19,14 +17,14 @@ const runAppropriateStrategy = (req, store) => {
// The firefox plugin injects a function to send requests through it // The firefox plugin injects a function to send requests through it
// If that is available, then we can use the FirefoxStrategy // If that is available, then we can use the FirefoxStrategy
if (window.firefoxExtSendRequest) { if (window.firefoxExtSendRequest) {
return FirefoxStrategy(req, store); return FirefoxStrategy(req, store);
} }
} }
return AxiosStrategy(req, store); return AxiosStrategy(req, store);
} }
const sendNetworkRequest = (req, store) => const sendNetworkRequest = (req, store) =>
runAppropriateStrategy(req, store) runAppropriateStrategy(req, store)
.finally(() => window.$nuxt.$loading.finish()); .finally(() => window.$nuxt.$loading.finish());