From 2fc010fe6ec339b7ff1806071c599818b89e7340 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20L=C3=BCftinger?= Date: Tue, 14 Mar 2023 23:38:47 +0100 Subject: [PATCH] correctly use userSettings.theme() in bookPlayer --- src/plugins/bookPlayer/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/bookPlayer/plugin.js b/src/plugins/bookPlayer/plugin.js index 1d3d411615..8924d06951 100644 --- a/src/plugins/bookPlayer/plugin.js +++ b/src/plugins/bookPlayer/plugin.js @@ -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';