diff options
-rw-r--r-- | js/app.js | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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)');
|