fix #7164: firefox back button after a 402 redirect

This commit is contained in:
Sebastian 2022-03-21 09:40:15 -03:00
parent 65eb64cd07
commit 88bb943672
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -233,7 +233,7 @@ function makeSyncWalletRedirect(
const tab = await getTab(tabId);
if (tab.url === oldUrl) {
console.log("redirecting to", innerUrl.href);
chrome.tabs.update(tabId, { url: innerUrl.href });
chrome.tabs.update(tabId, { url: innerUrl.href, loadReplace: true } as any);
}
};
doit();