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:
parent
e9613a7131
commit
2fc010fe6e
1 changed files with 1 additions and 1 deletions
|
@ -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';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue