mirror of
https://github.com/LBRYFoundation/Watch-on-LBRY.git
synced 2025-08-23 17:47:26 +00:00
🍙 on redirect use replace if tab has no history
This commit is contained in:
parent
9c26d553f5
commit
59a5e0dee2
1 changed files with 9 additions and 4 deletions
|
@ -354,10 +354,15 @@ import { getExtensionSettingsAsync, getSourcePlatfromSettingsFromHostname, getTa
|
|||
location.replace(lbryURL)
|
||||
}
|
||||
else {
|
||||
if (window.history.length === 1)
|
||||
{
|
||||
location.replace(lbryURL)
|
||||
}
|
||||
else
|
||||
{
|
||||
openNewTab(lbryURL)
|
||||
|
||||
if (window.history.length === 1) window.close()
|
||||
else window.history.back()
|
||||
window.history.back()
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
|
|
Loading…
Add table
Reference in a new issue