Fix non-WASM search with polyfill and optimize minified scripts
This commit is contained in:
parent
fb30f1b416
commit
5521291e5b
7 changed files with 25 additions and 6 deletions
|
|
@ -3,6 +3,13 @@ import SearchComponent from "astro-pagefind/components/Search";
|
|||
import GalleryLayout from "../layouts/GalleryLayout.astro";
|
||||
---
|
||||
|
||||
<script>
|
||||
import { WebAssembly } from "polywasm";
|
||||
if (!("WebAssembly" in globalThis)) {
|
||||
globalThis.WebAssembly = WebAssembly;
|
||||
}
|
||||
</script>
|
||||
|
||||
<GalleryLayout pageTitle="Search">
|
||||
<meta slot="head" property="og:description" content="Bad Manners || Search" />
|
||||
<h1 class="m-2 text-2xl font-semibold text-stone-800 dark:text-stone-100">Search</h1>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue