Checks
This commit is contained in:
parent
9067d38dce
commit
a2cb32225d
|
@ -1,5 +1,22 @@
|
|||
<script>
|
||||
import Spinner from "components/common/Spinner.svelte"
|
||||
import { API } from "api"
|
||||
|
||||
setInterval(async () => {
|
||||
const response = await API.get({ url: "/api/migrations/status" })
|
||||
if (!response.migrated) {
|
||||
return
|
||||
}
|
||||
|
||||
const urlParams = new URLSearchParams(window.location.search)
|
||||
const returnUrl = urlParams.get("returnUrl")
|
||||
|
||||
window.location = returnUrl
|
||||
}, 1000)
|
||||
|
||||
setTimeout(() => {
|
||||
alert("Something went wrong 💀")
|
||||
}, 60000)
|
||||
</script>
|
||||
|
||||
<div class="loading">
|
||||
|
|
Loading…
Reference in New Issue