From 3fa976c67cf0da5623ef87061f94791f22a3ef73 Mon Sep 17 00:00:00 2001 From: Matthew Gordon Date: Thu, 12 Jun 2025 11:03:23 -0300 Subject: [PATCH] Fix bug initializing app --- web/pteropus-frame.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {