mirror of
https://github.com/outline/outline.git
synced 2026-11-25 07:04:37 +03:00
fix: Desktop redirect on Safari
This commit is contained in:
1 parent
83b687a632
commit
d09a3de800
1 file changed
+3
-2
@@ -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]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user