mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
11 lines
377 B
JavaScript
11 lines
377 B
JavaScript
import * as userSettings from 'userSettings';
|
|
import skinManager from 'skinManager';
|
|
import events from 'events';
|
|
|
|
// Set the default theme when loading
|
|
skinManager.setTheme(userSettings.theme());
|
|
|
|
// Set the user's prefered theme when signing in
|
|
events.on(window.connectionManager, 'localusersignedin', function (e, user) {
|
|
skinManager.setTheme(userSettings.theme());
|
|
});
|