update goto

This commit is contained in:
Ruben Fiszel
2023-02-08 00:38:47 +01:00
parent 56616d5c6d
commit fcab562bf2
2 changed files with 3 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
mkdir -p dist
npm run build-embed
cp static/Inter-Variable.ttf dist
cp static/tailwind.js dist

View File

@@ -3,7 +3,7 @@
import { classNames } from '../../../utils'
import Icon from 'svelte-awesome'
import { ButtonType } from './model'
// import { goto } from '$app/navigation'
import { goto } from '$app/navigation'
import { Loader2 } from 'lucide-svelte'
export let size: ButtonType.Size = 'md'
@@ -93,7 +93,7 @@
window.open(href, target)
} else {
loading = true
// await goto(href)
await goto(href)
loading = false
}
}