mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2024-04-21 12:32:08 +00:00
fix (dark): dark mode issues from admin console
This commit is contained in:
@@ -23,13 +23,6 @@ main();
|
||||
async function setup_device() {
|
||||
const className = "ontouchstart" in window ? "touch-yes" : "touch-no";
|
||||
document.body.classList.add(className);
|
||||
|
||||
if (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches) {
|
||||
document.body.classList.add("dark-mode");
|
||||
}
|
||||
window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", function(e) {
|
||||
e.matches ? document.body.classList.add("dark-mode") : document.body.classList.remove("dark-mode");
|
||||
});
|
||||
}
|
||||
|
||||
async function setup_blue_death_screen() {
|
||||
|
||||
Reference in New Issue
Block a user