Added FirefoxStrategy to interact with the Firefox extension for Postwoman
This commit is contained in:
@@ -4,6 +4,11 @@ import FirefoxStrategy from "./strategies/FirefoxStrategy";
|
||||
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
if (store.state.postwoman.settings.PROXY_ENABLED) {
|
||||
return ProxyStrategy(req, store);
|
||||
|
||||
Reference in New Issue
Block a user