Fix bug initializing app
This commit is contained in:
parent
04aec9231b
commit
3fa976c67c
|
|
@ -7,8 +7,9 @@ function fileDragOverHandler(event) {
|
||||||
async function run() {
|
async function run() {
|
||||||
await init();
|
await init();
|
||||||
|
|
||||||
|
let pteropus;
|
||||||
try {
|
try {
|
||||||
let pteropus = await init_pteropus();
|
pteropus = await init_pteropus();
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
const errorParagraph = document.createElement("p");
|
const errorParagraph = document.createElement("p");
|
||||||
if(e instanceof PteropusInitError) {
|
if(e instanceof PteropusInitError) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue