[fix] fix realm url on local

This commit is contained in:
kwaroran
2023-07-21 01:40:29 +09:00
parent e743371771
commit 5b12adac26

View File

@@ -128,6 +128,14 @@
<button class="w-full hover:bg-selected p-4" on:click|stopPropagation={async () => {
menuOpen = false
const input = await alertInput('Input URL or ID')
if(input.startsWith("http")){
const url = new URL(input)
const id = url.searchParams.get("realm")
if(id){
downloadRisuHub(id)
return
}
}
const id = input.split("?").at(-1)
downloadRisuHub(id)