From d09a3de800e5140adfb4b97409a0cf756fc2ed85 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 1 Dec 2022 08:26:01 -0500 Subject: [PATCH] fix: Desktop redirect on Safari --- app/scenes/DesktopRedirect.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/scenes/DesktopRedirect.tsx b/app/scenes/DesktopRedirect.tsx index d4581b96f..6db11f0e5 100644 --- a/app/scenes/DesktopRedirect.tsx +++ b/app/scenes/DesktopRedirect.tsx @@ -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]);