add linting to server folder

This commit is contained in:
janis
2023-10-05 13:57:35 +02:00
parent 5c5462186f
commit dbb1e7a977
7 changed files with 11 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
var theme = localStorage.getItem( 'theme' ) ?? '';
let theme = localStorage.getItem( 'theme' ) ?? '';
if ( window.matchMedia( '(prefers-color-scheme: dark)' ).matches || theme === '☼' ) {
document.documentElement.classList.add( 'dark' );
document.getElementById( 'themeSelector' ).innerHTML = '☼';
@@ -9,6 +9,7 @@ if ( window.matchMedia( '(prefers-color-scheme: dark)' ).matches || theme === '&
theme = '☽';
}
// eslint-disable-next-line no-unused-vars
function changeTheme () {
if ( theme === '☼' ) {
document.documentElement.classList.remove( 'dark' );