mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-03 17:39:42 +02:00
feat: Add darkreader lock and 404 tab handling
Add a <meta name="darkreader-lock"> tag to prevent Dark Reader from altering the docs styling. Adjust client-side routing so only '/' is replaced with the 'start' tab; unknown paths now open the 'notfound' tab instead of being redirected to start.
This commit is contained in:
+5
-2
@@ -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