mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
1 line
495 B
JavaScript
1 line
495 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.appTheme(),skinManager.setTheme(theme,context)})}); |