diff --git a/loader.js b/loader.js index 0457619..6ba8734 100644 --- a/loader.js +++ b/loader.js @@ -77,7 +77,13 @@ function init_honoka(file, android, newDomain) { } window.Module = { noInitialRun: true, - onRuntimeInitialized: onloaded, + onRuntimeInitialized: async function() { + try { + await onloaded(); + } catch(e) { + document.getElementById("status").innerText = "It didnt work. Are your files/options invalid?"; + } + }, arguments: [], preRun: [], postRun: [],