diff options
Diffstat (limited to 'index.php')
| -rw-r--r-- | index.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/index.php b/index.php index c6c5306..bc9419c 100644 --- a/index.php +++ b/index.php @@ -131,12 +131,24 @@ </div> </div> +<div class="epube-app-filler"></div> + <script type="text/javascript"> var index_mode = "<?php echo $mode ?>"; $(document).ready(function() { let refreshed_files = 0; + if (typeof EpubeApp != "undefined") { + $(".navbar").hide(); + $(".epube-app-filler").show(); + + if ($.urlParam("mode") == "favorites") + EpubeApp.setPage("PAGE_FAVORITES"); + else + EpubeApp.setPage("PAGE_LIBRARY"); + } + init_night_mode(); if ('serviceWorker' in navigator) { |
