()
| 7 | var isUnexpectedErrorOccured = false; |
| 8 | |
| 9 | var 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 | |
| 21 | var unexpectedErrorPopupSettings = function () { |
| 22 | var reloadButton = document.createElement('div'); |
no test coverage detected