Summary Files Commits Branches @commit @diff @stats
path: root / src / scripts / styling-preload.js
blob: c73a6b3b58670d902e610f58997e4c74be608740 (plain) (blame)
1
2
3
4
5
6
7
8
/* Theme */
const darkThemeStyle = document.styleSheets[1];
if (localStorage.getItem('theme') === 'light')
	darkThemeStyle.disabled = true;

/* No JS */
const hideJSStylings = document.styleSheets[2];
hideJSStylings.disabled = true;