From 710141fba343339349b5bc9431674257d6441d40 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Mon, 17 Apr 2023 19:41:26 -0400 Subject: [PATCH] Revert "Cleanup" This reverts commit ee7b180e3f022c46b8b828e7f2733dadcbc0df69. --- web-frontend/src/lib/common.js | 16 ++++++++++++++++ .../src/routes/app/CoordinateInfo.svelte | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/web-frontend/src/lib/common.js b/web-frontend/src/lib/common.js index ebd46ea..53de828 100644 --- a/web-frontend/src/lib/common.js +++ b/web-frontend/src/lib/common.js @@ -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, diff --git a/web-frontend/src/routes/app/CoordinateInfo.svelte b/web-frontend/src/routes/app/CoordinateInfo.svelte index 45d27c0..6c47cf8 100644 --- a/web-frontend/src/routes/app/CoordinateInfo.svelte +++ b/web-frontend/src/routes/app/CoordinateInfo.svelte @@ -41,9 +41,9 @@ {/each} {#each formats as format} - + {format.toUpperCase()} - {xpin.allCoordinates[format]} + {xpin.allCoordinates[format]} {/each}