Fix the back buttons (navigate back if you can but close if it was a new window).
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user