Removed logging
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user