fix: attempt to fix Safari login bug (#1510)
This commit is contained in:
parent
41270f9210
commit
98a4fbb96e
|
@ -40,7 +40,10 @@ async function redirectToOauth () {
|
||||||
instanceData.client_id,
|
instanceData.client_id,
|
||||||
REDIRECT_URI
|
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 () {
|
export async function logInToInstance () {
|
||||||
|
|
Loading…
Reference in New Issue