Enable search on all pages
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
<script lang="ts" module>
|
||||
// Opens a page like a click on a link does. Set by the Router when it mounts
|
||||
export let navigate: (href: string) => void
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
import { onMount, tick, type Component } from "svelte";
|
||||
import NotFound from "./NotFound.svelte";
|
||||
@@ -161,6 +166,8 @@ const load_page = async (href: string, history: boolean) => {
|
||||
})
|
||||
}
|
||||
|
||||
navigate = href => load_page(href, true)
|
||||
|
||||
const click = (e: MouseEvent) => {
|
||||
// Middle clicks, right clicks and modified clicks open the link in a new
|
||||
// tab or window. That's the browser's job, not ours
|
||||
|
||||
Reference in New Issue
Block a user