mirror of
https://github.com/thomiceli/opengist.git
synced 2025-07-08 00:55:00 +02:00
Tweaked project structure (#88)
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import './style.css';
|
||||
import './hljs.scss';
|
||||
import './style.scss';
|
||||
import './favicon.svg';
|
||||
import './default.png';
|
||||
import moment from 'moment';
|
||||
@ -14,6 +14,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
e.stopPropagation()
|
||||
localStorage.theme = 'light';
|
||||
themeMenu.classList.toggle('hidden');
|
||||
// @ts-ignore
|
||||
checkTheme()
|
||||
}
|
||||
|
||||
@ -21,6 +22,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
e.stopPropagation()
|
||||
localStorage.theme = 'dark';
|
||||
themeMenu.classList.toggle('hidden');
|
||||
// @ts-ignore
|
||||
checkTheme()
|
||||
}
|
||||
|
||||
@ -28,6 +30,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
e.stopPropagation()
|
||||
localStorage.removeItem('theme');
|
||||
themeMenu.classList.toggle('hidden');
|
||||
// @ts-ignore
|
||||
checkTheme();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user