summaryrefslogblamecommitdiff
path: root/reference/js/toggleTheme.js
blob: cfc1394a2cbc31365a0d05a8c22f692f92d357e3 (plain) (tree)
1
2
3
4
5
6
7






                                                        
function toggleTheme() {
	if (localStorage.getItem("theme") === "light") {
		setTheme("dark");
		return;
	}
	setTheme("light");
}