fix(frontend): fork script from hub

This commit is contained in:
Ruben Fiszel
2022-07-25 20:21:16 +02:00
parent 0201e853df
commit 43cacc1a66
+3 -3
View File
@@ -18,8 +18,8 @@
// Default
let schema: Schema = emptySchema()
$: templatePath = $page.url.searchParams.get('template')
$: hubPath = $page.url.searchParams.get('hub')
const templatePath = $page.url.searchParams.get('template')
const hubPath = $page.url.searchParams.get('hub')
const initialState = $page.url.searchParams.get('state')
@@ -59,7 +59,7 @@
async function loadHub(): Promise<void> {
if (hubPath) {
const template = await getScriptByPath(hubPath)
script.summary = `Fork of ${hubPath}`
script.description = `Fork of ${hubPath}`
script.content = template.content
script.language = Script.language.DENO
sendUserToast(`Code has been loaded from hub script ${hubPath}.`)