крупное обновление, завез вход и выход

This commit is contained in:
2024-01-12 17:57:54 +03:00
parent f31e7c4fef
commit 55bf7f4dd3
11 changed files with 200 additions and 48 deletions

View File

@@ -66,7 +66,11 @@ function approximateWithTimestamps(dataset) {
async function makeRequest(url) {
let response = await fetch(url)
if (response.status !== 200) {
if (response.status === 403) {
// http Forbidden, исправляется перезагрузкой страницы и просмотром окошка "Требуется авторизация"
window.location.reload()
return {}
} else if (response.status !== 200) {
console.log('fetch(' + url + ') failed. Status Code: ' + response.status);
return null;
}