From 2295bd1fccc31cc7b21400f1517e5a6cac5b5d14 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 22 Apr 2020 06:52:23 +0300 Subject: app: use manual night mode switch for index for the time being; pass theme bg color to app --- js/app.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'js/app.js') diff --git a/js/app.js b/js/app.js index 5c55fb3..25e3ce2 100644 --- a/js/app.js +++ b/js/app.js @@ -215,10 +215,8 @@ const App = { }, initNightMode: function() { if (typeof EpubeApp != "undefined") { - if (!EpubeApp.isAutoNightModeSupported()) { - App.applyNightMode(EpubeApp.isNightMode()); - return; - } + App.applyNightMode(EpubeApp.isNightMode()); + return; } if (window.matchMedia) { -- cgit v1.2.3