🍙 on redirect use replace if tab has no history

This commit is contained in:
Shiba 2022-08-09 22:22:25 +00:00
parent 9c26d553f5
commit 59a5e0dee2

View file

@ -354,10 +354,15 @@ import { getExtensionSettingsAsync, getSourcePlatfromSettingsFromHostname, getTa
location.replace(lbryURL)
}
else {
openNewTab(lbryURL)
if (window.history.length === 1) window.close()
else window.history.back()
if (window.history.length === 1)
{
location.replace(lbryURL)
}
else
{
openNewTab(lbryURL)
window.history.back()
}
}
}
} catch (error) {