Refactor network and ProxyStrategy code
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user