diff options
author | Andrew Dolgov <[email protected]> | 2020-04-22 06:52:23 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-04-22 06:52:23 +0300 |
commit | 2295bd1fccc31cc7b21400f1517e5a6cac5b5d14 (patch) | |
tree | 48ec63d13b1fbf819d5c47968c4557eaff6b1d3a /js/app.js | |
parent | 8294f925aa8335a8eef496340acd6047926c3b4b (diff) |
app: use manual night mode switch for index for the time being; pass theme bg color to app
Diffstat (limited to 'js/app.js')
-rw-r--r-- | js/app.js | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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) {
|