mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-04 17:59:43 +02:00
Merge pull request #59 from KeksPirates/feat/improve-website
feat: Add darkreader lock and 404 tab handling
This commit is contained in:
+4
-1
@@ -3,6 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<meta name="darkreader-lock">
|
||||||
<link rel="stylesheet" href="main.css"/>
|
<link rel="stylesheet" href="main.css"/>
|
||||||
<title>SoftwareManager - Main</title>
|
<title>SoftwareManager - Main</title>
|
||||||
<!-- <link rel="icon" type="image/x-icon" href="/assets/icons/favicon.ico"> -->
|
<!-- <link rel="icon" type="image/x-icon" href="/assets/icons/favicon.ico"> -->
|
||||||
@@ -225,9 +226,11 @@
|
|||||||
openTab(null, 'api', false);
|
openTab(null, 'api', false);
|
||||||
} else if (currentPath === '/docs') {
|
} else if (currentPath === '/docs') {
|
||||||
openTab(null, 'docs', false);
|
openTab(null, 'docs', false);
|
||||||
} else {
|
} else if (currentPath === '/') {
|
||||||
history.replaceState({ tab: 'start' }, "", "/");
|
history.replaceState({ tab: 'start' }, "", "/");
|
||||||
openTab(null, 'start', false);
|
openTab(null, 'start', false);
|
||||||
|
} else {
|
||||||
|
openTab(null, 'notfound', false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user