fix: Desktop redirect on Safari

This commit is contained in:
Tom Moor committed 2022-12-01 08:26:01 -05:00
1 parent 83b687a632
commit d09a3de800
1 file changed
+3 -2
+3 -2
View File
@@ -19,8 +19,9 @@ const DesktopRedirect = () => {
"_self"
);
// Clean the url so it's not possible to hit reload, re-using the transfer token will not work.
window.location.search = "";
// Clean the url after a short delay so it's not possible to hit reload, re-using the transfer token
// will not work and changing the location immediately cancels the window.open call in Safari.
setTimeout(() => (window.location.search = ""), 500);
}
}, [token]);