🍙 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) 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) {