Added 502 for auto redirecting #99

This commit is contained in:
ManeraKai 2022-04-13 23:51:23 +03:00
parent d207ff2a34
commit 61b2cc990f
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
1 changed files with 2 additions and 1 deletions

View File

@ -175,7 +175,8 @@ browser.webRequest.onResponseStarted.addListener(
details => {
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) {
// console.log("statusCode", details.statusCode);
const url = new URL(details.url);