mirror of
https://github.com/LBRYFoundation/Watch-on-LBRY.git
synced 2025-08-23 17:47: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)
|
if (window.history.length === 1)
|
||||||
{
|
{
|
||||||
location.replace(lbryURL)
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue