don't use async css, use relative api url

This commit is contained in:
creeper123123321 2024-03-07 09:18:55 -03:00
parent 4beb6e46ef
commit 28d148590f
3 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,7 @@ frame-src 'self' https://login.microsoftonline.com/ https://login.live.com/"
<meta content="#0468a1" name="theme-color">
<!-- https://www.srihash.org/ -->
<link class="async-css" rel="preload" as="style"
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.2.0/css/bootstrap.min.css"
integrity="sha512-XWTTruHZEYJsxV3W/lSXG1n3Q39YIWOstqvmFsdNEEQfHoZ6vm6E9GK2OrF6DSJSpIbRbi+Nn0WDPID9O7xB2Q=="
crossorigin="anonymous" referrerpolicy="no-referrer"/>

File diff suppressed because one or more lines are too long

View File

@ -333,7 +333,7 @@ async function getIpAddress(cors: boolean): Promise<string> {
}
function getNetworkTimestamp(): Promise<number> {
return fetch("/api/getEpoch", {"headers": {"accept": "application/json"}})
return fetch("api/getEpoch", {"headers": {"accept": "application/json"}})
.then(checkFetchSuccess("code"))
.then(r => r.json())
.then(it => parseInt(it))