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

Function unexpectedErrorPopupSettings

wasm/error.js:21–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19};
20
21var unexpectedErrorPopupSettings = function () {
22 var reloadButton = document.createElement('div');
23 reloadButton.setAttribute('onclick', 'location.reload()');
24 reloadButton.innerHTML = 'Reload';
25
26 return {
27 width: 530,
28 height: 180,
29 title: unexpectedErrorIsNotEnoughMemoryError ? 'Not Enough Memory' : 'Unexpected Error Occurred',
30 messageText: 'Try to Reload the Page',
31 buttonElements: [reloadButton]
32 };
33};
34
35var showUnexpectedErrorPopup = function (settings) {
36 var { overlay, popup } = createOverlayPopup('show_unexpected_error_dialog', settings.title, settings.width, settings.height, true, false);

Callers 1

unexpectedErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected