Trying to fix weird downloading bug #150 #154

This commit is contained in:
ManeraKai 2022-03-30 18:28:12 +03:00
parent d007f595d6
commit dc67e5dbc4
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ function removeXFrameOptions(e) {
...nitterNormalCustomRedirects,
...nitterTorCustomRedirects,
];
if (!twitterList.includes(protocolHost) && e.type != 'sub_frame') return;
if (!twitterList.includes(protocolHost) || e.type != 'sub_frame') return;
let isChanged = false;
console.log(e.responseHeaders);
for (const i in e.responseHeaders) if (e.responseHeaders[i].name == 'x-frame-options') {