()
| 50 | |
| 51 | initSkin(); |
| 52 | function initSkin() { |
| 53 | var skin = utils.getCookie('theme') || 'dark'; |
| 54 | var rootElem = document.querySelector('html'); |
| 55 | rootElem.classList.remove("light", "dark"); |
| 56 | rootElem.classList.add(skin); |
| 57 | setRootStyle(skin); |
| 58 | } |
no test coverage detected