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