Fix the back buttons (navigate back if you can but close if it was a new window).

This commit is contained in:
Leo Vasanko
2025-12-02 18:13:23 +00:00
parent 6f9f4aefc1
commit 7ace4dcb4b
5 changed files with 12 additions and 16 deletions
+2
View File
@@ -24,3 +24,5 @@ export function getCookie(name) {
const parts = value.split(`; ${name}=`)
if (parts.length === 2) return parts.pop().split(';').shift()
}
export const goBack = () => history.back() || window.close()