diff --git a/src/routes/_actions/addInstance.js b/src/routes/_actions/addInstance.js index 64deb30d..8e4344d3 100644 --- a/src/routes/_actions/addInstance.js +++ b/src/routes/_actions/addInstance.js @@ -40,7 +40,10 @@ async function redirectToOauth () { instanceData.client_id, REDIRECT_URI ) - document.location.href = oauthUrl + // setTimeout to allow the browser to *actually* save the localStorage data (fixes Safari bug apparently) + setTimeout(() => { + document.location.href = oauthUrl + }, 200) } export async function logInToInstance () {