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)
|
location.replace(lbryURL)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
openNewTab(lbryURL)
|
if (window.history.length === 1)
|
||||||
|
{
|
||||||
if (window.history.length === 1) window.close()
|
location.replace(lbryURL)
|
||||||
else window.history.back()
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
openNewTab(lbryURL)
|
||||||
|
window.history.back()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue