1
0
Fork 0
mirror of synced 2024-09-08 21:51:58 +12:00

Use routify

This commit is contained in:
Adria Navarro 2023-12-14 16:01:49 +01:00
parent 3a2a2a242c
commit 5f6210e9a0

View file

@ -1,5 +1,7 @@
<script> <script>
import Spinner from "components/common/Spinner.svelte" import Spinner from "components/common/Spinner.svelte"
import { goto } from "@roxi/routify"
import { API } from "api" import { API } from "api"
let timeout let timeout
@ -14,7 +16,7 @@
const urlParams = new URLSearchParams(window.location.search) const urlParams = new URLSearchParams(window.location.search)
const returnUrl = urlParams.get("returnUrl") const returnUrl = urlParams.get("returnUrl")
window.location = returnUrl $goto(returnUrl)
}, 1000) }, 1000)
} }