From c048e26a1579c347abdffa1516359579d94447a9 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Thu, 17 Feb 2022 04:36:16 +0900 Subject: mv-overlay: catch exceptions --- support/mv-overlay/js/main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/support/mv-overlay/js/main.js b/support/mv-overlay/js/main.js index 56925cd..8f85b5e 100644 --- a/support/mv-overlay/js/main.js +++ b/support/mv-overlay/js/main.js @@ -11,6 +11,11 @@ var __RMV_OVERRIDE = [ // MV really doesn't want to use WebGL on mobile for some reason // Well at least recent androids should be fine shouldUseCanvasRenderer: () => false, + // Replace error handler, try chug on even if errors happen + onError: e => { + console.error(e.message) + if (e.filename || e.lineno) console.error(e.filename, e.lineno) + }, }}, ] PluginManager.setup($plugins); -- cgit v1.2.3