summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-04-21 13:17:01 +0300
committerAndrew Dolgov <[email protected]>2020-04-21 13:17:01 +0300
commit09942cf787798d82bfdacc9df533352a1970d337 (patch)
tree38d5e68da42c73a243203a37eda8dc0cefa5702d
parent7586dc5145f7e6527290464ba8408a0785fed0c1 (diff)
notify epube app on login screen
-rw-r--r--login.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/login.php b/login.php
index 844862d..b80792b 100644
--- a/login.php
+++ b/login.php
@@ -46,6 +46,15 @@
<link rel="shortcut icon" type="image/png" href="img/favicon.png" />
<link rel="manifest" href="manifest.json">
<meta name="mobile-web-app-capable" content="yes">
+ <script type="text/javascript">
+ $(document).ready(function() {
+ /* global EpubeApp */
+
+ if (typeof EpubeApp != "undefined") {
+ EpubeApp.setPage("PAGE_LOGIN");
+ }
+ });
+ </script>
</head>
<body>