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

This commit is contained in:
2025-12-02 18:02:02 +00:00
parent 2699aaa472
commit 643d9bafab
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()