summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/app.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/app.js b/js/app.js
index c9cd536..5c55fb3 100644
--- a/js/app.js
+++ b/js/app.js
@@ -214,6 +214,13 @@ const App = {
}
},
initNightMode: function() {
+ if (typeof EpubeApp != "undefined") {
+ if (!EpubeApp.isAutoNightModeSupported()) {
+ App.applyNightMode(EpubeApp.isNightMode());
+ return;
+ }
+ }
+
if (window.matchMedia) {
const mql = window.matchMedia('(prefers-color-scheme: dark)');