wiedehopf / tar1090

Provides an improved webinterface for use with ADS-B decoders readsb / dump1090-fa
Other
1.27k stars 237 forks source link

Fix zstddec example try/catch #197

Closed joeflateau closed 2 years ago

joeflateau commented 2 years ago

init() doesn't throw an error if it fails, instead, it rejects a promise. you can catch that by using .catch OR you can wrap this in an async iife and with try { await init(); } catch(e) { webAssemblyFail(e) }. try catch will only catch the rejection if the promise is awaited in the try block