Fix non-WASM search with polyfill and optimize minified scripts

This commit is contained in:
Bad Manners 2024-08-27 13:22:48 -03:00
parent fb30f1b416
commit 5521291e5b
7 changed files with 25 additions and 6 deletions

View file

@ -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>