Revert "Cleanup"

This reverts commit ee7b180e3f.
This commit is contained in:
Austen Adler 2023-04-17 19:41:26 -04:00
parent 7a12de1bd3
commit 710141fba3
2 changed files with 18 additions and 2 deletions

View File

@ -1,4 +1,9 @@
// import init from 'xpin-wasm';
// import * as xpinWasm from 'xpin-wasm';
import * as xpinWasm from '$lib/pkg/xpin_wasm.js';
// import * as init from '$lib/pkg/xpin_wasm_bg.js';
// import init from '$lib/pkg/xpin_wasm_bg.wasm?init';
// import * as xpinWasm from '$lib/pkg/xpin_wasm.js';
export const WasmStatus = {
NotLoaded: -1,
@ -12,6 +17,17 @@ export async function getWasm() {
wasmStatus = WasmStatus.Loaded;
// await init()
// .then(() => {
// })
// .catch((e) => {
// console.error('Error loading wasm module', e);
// wasmError = e;
// wasmStatus = WasmStatus.Errored;
// throw e;
// });
return {
status: wasmStatus,
error: wasmError,

View File

@ -41,9 +41,9 @@
{/each}
{#each formats as format}
<tr class="m-4 border">
<tr>
<th>{format.toUpperCase()}</th>
<td class="p-4 border">{xpin.allCoordinates[format]}</td>
<td>{xpin.allCoordinates[format]}</td>
<td><CopyButton data={xpin.allCoordinates[format]} /></td>
</tr>
{/each}