Skip to content

Commit

Permalink
womp womp
Browse files Browse the repository at this point in the history
  • Loading branch information
Notplayingallday383 committed Apr 17, 2024
1 parent d96b20f commit 9e26b6e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/settings.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-expect-error stfu
import Nav from "@components/nav"
// @ts-expect-error stfu
import Footer from "@components/footer"
Expand All @@ -13,7 +14,7 @@ export default function Settings() {
showSection(sectionName);
});
});
function showSection(sectionName) {
function showSection(sectionName: any) {
sections.forEach(section => {
if (section.getAttribute('data-section') === sectionName) {
section.classList.add('active');
Expand All @@ -22,14 +23,14 @@ export default function Settings() {
}
});
}
const connectionStatusElem = document.getElementById('connection-status');
const connectionStatusElem: any = document.getElementById('connection-status');
function updateConnectionStatus() {
connectionStatusElem.textContent = navigator.onLine ? '🟢Online' : '🔴Offline';
}
window.addEventListener('online', updateConnectionStatus);
window.addEventListener('offline', updateConnectionStatus);
updateConnectionStatus();
function checkServerStatus(url) {
function checkServerStatus(url: any) {
const startTime = performance.now();

return fetch(url, { method: 'HEAD' })
Expand Down

0 comments on commit 9e26b6e

Please sign in to comment.