fix: back button logic error

This commit is contained in:
radishzzz 2025-03-22 05:35:13 +00:00
parent d2ebe60778
commit 82a2031342

View file

@ -17,7 +17,7 @@
<script>
function setupBackButton() {
document.getElementById('back-button')?.addEventListener('click', () => {
if (document.referrer && document.referrer.includes(window.location.hostname)) {
if (window.history.length > 1) {
window.history.back()
}
else {