mirror of
https://github.com/LBRYFoundation/Watch-on-LBRY.git
synced 2025-08-23 09:37:26 +00:00
🍣 handle unexpected location.replace behavior
This commit is contained in:
parent
5c9910dff1
commit
a41b51e454
1 changed files with 5 additions and 0 deletions
|
@ -357,6 +357,11 @@ import { getExtensionSettingsAsync, getSourcePlatfromSettingsFromHostname, getTa
|
|||
if (window.history.length === 1)
|
||||
{
|
||||
location.replace(lbryURL)
|
||||
|
||||
// Some extensions such as Firefox Multi-Account Containers, opens new tab for Odysee even though we say replace
|
||||
// In those cases if the window is still active after 2 seconds we close it manually
|
||||
await sleep(2000)
|
||||
window.close()
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue