Remove unused

This commit is contained in:
Maximilian Ammann 2022-09-15 16:55:09 +02:00
parent fb250e0d28
commit b6a4a8a66e

View File

@ -1,13 +1,9 @@
import init, {unsync_worker_entry} from "../wasm/maplibre"
const initializeExisting = async (module: string) => {
}
onmessage = async message => {
let MEMORY_PAGES = 16 * 1024
const memory = new WebAssembly.Memory({initial: 1024, maximum: MEMORY_PAGES, shared: false})
const initialised = await init(message.data[0], memory).catch(err => {
const initialised = init(message.data[0], memory).catch(err => {
// Propagate to main `onerror`:
setTimeout(() => {
throw err;