summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorJari Vetoniemi <jari.vetoniemi@indooratlas.com>2022-02-17 04:36:16 +0900
committerJari Vetoniemi <jari.vetoniemi@indooratlas.com>2022-02-17 04:36:16 +0900
commitc048e26a1579c347abdffa1516359579d94447a9 (patch)
treea038c515b081ba59cb9932bc8b6477761401a876 /support
parentb9405e7374d5f84cec41a7fa2f9477813e1c2305 (diff)
mv-overlay: catch exceptions
Diffstat (limited to 'support')
-rw-r--r--support/mv-overlay/js/main.js5
1 files changed, 5 insertions, 0 deletions
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);