1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix themes not loading unless signed in

This commit is contained in:
MrTimscampi 2020-08-09 13:24:16 +02:00
parent 784f9fcc32
commit e6159a22d8
2 changed files with 34 additions and 9 deletions

View file

@ -3,6 +3,10 @@ import skinManager from 'skinManager';
import connectionManager from 'connectionManager';
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(connectionManager, 'localusersignedin', function (e, user) {
skinManager.setTheme(userSettings.theme());
});