diff --git a/web/pteropus-frame.js b/web/pteropus-frame.js index 427f120..3f8538a 100644 --- a/web/pteropus-frame.js +++ b/web/pteropus-frame.js @@ -7,8 +7,9 @@ function fileDragOverHandler(event) { async function run() { await init(); + let pteropus; try { - let pteropus = await init_pteropus(); + pteropus = await init_pteropus(); } catch(e) { const errorParagraph = document.createElement("p"); if(e instanceof PteropusInitError) {