mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Remove unused
This commit is contained in:
parent
fb250e0d28
commit
b6a4a8a66e
@ -1,13 +1,9 @@
|
|||||||
import init, {unsync_worker_entry} from "../wasm/maplibre"
|
import init, {unsync_worker_entry} from "../wasm/maplibre"
|
||||||
|
|
||||||
const initializeExisting = async (module: string) => {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
onmessage = async message => {
|
onmessage = async message => {
|
||||||
let MEMORY_PAGES = 16 * 1024
|
let MEMORY_PAGES = 16 * 1024
|
||||||
const memory = new WebAssembly.Memory({initial: 1024, maximum: MEMORY_PAGES, shared: false})
|
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`:
|
// Propagate to main `onerror`:
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
throw err;
|
throw err;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user