/
Lachklen
/
MYtgstation
Обзор
Документация
Войти
/
Lachklen
/
MYtgstation
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
code/modules/asset_cache/validate_assets.html
31 строка
880 B
Jeremiah
Sets prettier to run on the repo (#91379)
30 май 2025, 07:23
Не верифицирован
30 май 2025, 07:23
9db2f69
Код
Авторство
О чём код?
<!doctype html> <html lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> </head> <body> <script> //this is used over window.location because window.location has a character limit in IE. function sendbyond(text) { var xhr = new XMLHttpRequest(); xhr.open("GET", "?" + text, true); xhr.send(null); } var xhr = new XMLHttpRequest(); xhr.open("GET", "asset_data.json", true); xhr.responseType = "text"; xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var status = xhr.status; if (status >= 200 && status < 400) { sendbyond( "asset_cache_preload_data=" + encodeURIComponent(xhr.responseText), ); } } }; xhr.send(null); </script> </body> </html>