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.id = 'bookplayer';
this.priority = 1;
if (userSettings.theme(undefined) === 'dark' || userSettings.theme(undefined) === null) {
if (!userSettings.theme() || userSettings.theme() === 'dark') {
this.theme = 'dark';
} else {
this.theme = 'light';