Added 502 for auto redirecting #99
This commit is contained in:
parent
d207ff2a34
commit
61b2cc990f
|
@ -175,7 +175,8 @@ browser.webRequest.onResponseStarted.addListener(
|
||||||
details => {
|
details => {
|
||||||
if (!generalHelper.getAutoRedirect()) return null;
|
if (!generalHelper.getAutoRedirect()) return null;
|
||||||
|
|
||||||
if (details.type == 'main_frame' && (details.statusCode == 503 || details.statusCode == 504)) {
|
console.log('details.statusCode', details.statusCode);
|
||||||
|
if (details.type == 'main_frame' && (details.statusCode == 502 || details.statusCode == 503 || details.statusCode == 504)) {
|
||||||
// if (details.type == 'main_frame' && details.statusCode >= 200) {
|
// if (details.type == 'main_frame' && details.statusCode >= 200) {
|
||||||
// console.log("statusCode", details.statusCode);
|
// console.log("statusCode", details.statusCode);
|
||||||
const url = new URL(details.url);
|
const url = new URL(details.url);
|
||||||
|
|
Loading…
Reference in New Issue