From 4a445edcb679345d6d730345a7d5cf39c8b70e6a Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Mon, 18 Nov 2024 06:06:24 -0500 Subject: No logout; let's redirect --- src/UI.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/UI.js') diff --git a/src/UI.js b/src/UI.js index 5003e21..b27b10b 100644 --- a/src/UI.js +++ b/src/UI.js @@ -4,3 +4,6 @@ export const _toJSON = (x) => JSON.stringify(x); export const _reload = () => { window.location.reload(); }; +export const _redirect = (url) => () => { + window.location.href = url; +}; -- cgit v1.2.3