Refactor network and ProxyStrategy code

This commit is contained in:
Andrew Bastin
2020-01-14 11:49:43 -05:00
parent 3a8b4337f0
commit bd008f42dd
2 changed files with 5 additions and 5 deletions

View File

@@ -5,9 +5,9 @@ import ProxyStrategy from "./strategies/ProxyStrategy";
const sendNetworkRequest = (req, store) => {
if (store.state.postwoman.settings.PROXY_ENABLED) {
return ProxyStrategy(req, store);
} else {
return AxiosStrategy(req, store);
}
}
return AxiosStrategy(req, store);
}
export { sendNetworkRequest };