MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / unexpectedError

Function unexpectedError

wasm/error.js:9–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7var isUnexpectedErrorOccured = false;
8
9var unexpectedError = function () {
10 if (isUnexpectedErrorOccured)
11 return;
12 isUnexpectedErrorOccured = true;
13
14 // Remove event listeners introduced in resize.js otherwise we will see canvas again on resize
15 window.removeEventListener('resize', resizeCallBack);
16 window.removeEventListener('orientationchange', resizeCallBack);
17 document.getElementById('canvas').setAttribute('style', 'visibility: hidden;');
18 showUnexpectedErrorPopup(unexpectedErrorPopupSettings());
19};
20
21var unexpectedErrorPopupSettings = function () {
22 var reloadButton = document.createElement('div');

Callers 2

wasm_loader.jsFile · 0.85
registerErrorHandlingFunction · 0.85

Calls 2

showUnexpectedErrorPopupFunction · 0.85

Tested by

no test coverage detected