| 391 | // We refresh the browser between levels due to memory leak issues |
| 392 | // hence should register hoc progress modal check after every refresh if relevant |
| 393 | var checkAndRegisterHocModalInterval = function () { |
| 394 | if (window.sessionStorage != null ? window.sessionStorage.getItem('hoc_progress_modal_time') : undefined) { // set in unit map |
| 395 | return utils.registerHocProgressModalCheck() |
| 396 | } |
| 397 | } |
| 398 | |
| 399 | // Check if the crash happened, and log it on datadog. Note that the application should be initialized before this. |
| 400 | var checkAndLogBrowserCrash = function () { |