fix: back button fallback logic

This commit is contained in:
radishzzz 2025-05-26 12:10:09 +01:00
parent 68525c8c41
commit f7ac92fd75

View file

@ -21,6 +21,12 @@ function setupBackButton() {
if (window.history.length > 1) { if (window.history.length > 1) {
window.history.back() window.history.back()
} }
else {
const siteTitleLink = document.getElementById('site-title-link')
if (siteTitleLink) {
siteTitleLink.click()
}
}
}) })
} }