mirror of
https://github.com/outline/outline.git
synced 2025-04-10 03:03:45 +00:00
fix: Desktop redirect on Safari
This commit is contained in:
@ -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