fix network errors not being reported anymore
This commit is contained in:
@@ -468,8 +468,6 @@ function attach_ws_events(ws){
|
||||
|
||||
delete msg.proxy.proxyDNS;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
if(typeof msg.proxy.port == "string"){
|
||||
@@ -477,8 +475,6 @@ function attach_ws_events(ws){
|
||||
msg.proxy.port = parseInt(msg.proxy.port);
|
||||
}
|
||||
|
||||
console.log(msg.proxy);
|
||||
|
||||
proxy_map[msg.id] = msg.proxy;
|
||||
send(ws, seqid, {status: true});
|
||||
return;
|
||||
@@ -826,7 +822,7 @@ browser.webRequest.onHeadersReceived.addListener(
|
||||
// send error on 4xx code
|
||||
if(page.statusCode >= 400){
|
||||
|
||||
const proxy_config = proxy_map[details.cookieStoreId];
|
||||
const proxy_config = proxy_map[page.cookieStoreId];
|
||||
|
||||
if(
|
||||
proxy_config &&
|
||||
|
||||
Reference in New Issue
Block a user