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

correctly use userSettings.theme() in bookPlayer

This commit is contained in:
Lukas Lüftinger 2023-03-14 23:38:47 +01:00
parent e9613a7131
commit 2fc010fe6e

View file

@ -31,7 +31,7 @@ export class BookPlayer {
this.type = PluginType.MediaPlayer; this.type = PluginType.MediaPlayer;
this.id = 'bookplayer'; this.id = 'bookplayer';
this.priority = 1; this.priority = 1;
if (userSettings.theme(undefined) === 'dark' || userSettings.theme(undefined) === null) { if (!userSettings.theme() || userSettings.theme() === 'dark') {
this.theme = 'dark'; this.theme = 'dark';
} else { } else {
this.theme = 'light'; this.theme = 'light';