Fixed hard redirection
This commit is contained in:
parent
0598e0c6bd
commit
b700ef73ad
|
@ -12,6 +12,7 @@
|
|||
import TopBar from '../components/TopBar.svelte'
|
||||
import Icon from '@iconify/svelte'
|
||||
import CodeView from '../components/CodeView.svelte'
|
||||
import { goto } from '$app/navigation'
|
||||
|
||||
let decompressed: string
|
||||
let htmlContent: string
|
||||
|
@ -52,7 +53,7 @@
|
|||
}
|
||||
} else {
|
||||
// Redirect to editor page
|
||||
window.location.href = '/editor'
|
||||
goto('/editor')
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user