jellyfin-web/dashboard-ui/scripts/themeloader.js
2017-09-25 15:17:34 -04:00

1 line
492 B
JavaScript

define(["userSettings","skinManager"],function(userSettings,skinManager){"use strict";pageClassOn("viewbeforeshow","page",function(){var viewType=this.getAttribute("data-theme");viewType||(viewType=this.classList.contains("type-interior")||this.classList.contains("wizardPage")?"a":"b",this.setAttribute("data-theme",viewType));var theme,context;"a"===viewType?(theme=userSettings.dashboardTheme(),context="serverdashboard"):theme=userSettings.theme(),skinManager.setTheme(theme,context)})});