Fixed hard redirection

This commit is contained in:
Simon Cambier 2023-11-26 18:29:16 +01:00
parent 0598e0c6bd
commit b700ef73ad

View File

@ -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')
}
})