Перезагрузка страницы при ошибке

This commit is contained in:
Antosha42 2024-07-08 13:15:32 +07:00
parent 9c70033f85
commit fd4ec9f90a
2 changed files with 3 additions and 2 deletions

View File

@ -73,7 +73,7 @@ var Module = {
assetDownloadProgress: {}, // Track how many bytes of each needed asset has been downloaded so far.
UE4_indexedDBName: 'UE4_assetDatabase_COFKK_Multiplayer', // this should be an ascii ID string without special characters that is unique to the project that is being packaged
UE4_indexedDBVersion: 202407080530, // Bump this number to invalidate existing IDB storages in browsers.
UE4_indexedDBVersion: 202407080608, // Bump this number to invalidate existing IDB storages in browsers.
};
@ -963,7 +963,8 @@ function showErrorDialog(errorText) {
// }, 2000); // 2 seconds
// }
console.error('error: ' + errorText);
alert('Время сессии истекло, перезагрузите страницу (CTRL + F5)')
alert('Время сессии истекло. Закройте данное окно')
window.location.reload()
// var existingErrorDialog = document.getElementById('errorDialog');
// if (existingErrorDialog) {
// existingErrorDialog.innerHTML += '<br>' + errorText;