diff options
author | pacien | 2023-10-23 18:27:28 +0200 |
---|---|---|
committer | pacien | 2023-10-23 18:27:28 +0200 |
commit | 596f11043ffcd57d03ad774e2ba3c96bbaf5214e (patch) | |
tree | a9253d37827f7166cdfa832c0fdc501b5f9167c2 | |
parent | c4e436149154762b0a74600d77e37c94545e58fb (diff) | |
download | beamer-viewer-596f11043ffcd57d03ad774e2ba3c96bbaf5214e.tar.gz |
app: remove init popup blocker check
-rw-r--r-- | appcache.js | 1 | ||||
-rw-r--r-- | beamer/viewer/init.js | 10 | ||||
-rw-r--r-- | popup.html | 28 |
3 files changed, 0 insertions, 39 deletions
diff --git a/appcache.js b/appcache.js index ee9e356..067c968 100644 --- a/appcache.js +++ b/appcache.js | |||
@@ -24,7 +24,6 @@ class AppCache { | |||
24 | this.cacheName = "cache"; | 24 | this.cacheName = "cache"; |
25 | this.filesToCache = [ | 25 | this.filesToCache = [ |
26 | ".", | 26 | ".", |
27 | "popup.html", | ||
28 | "appcache.js", | 27 | "appcache.js", |
29 | "favicon.ico", | 28 | "favicon.ico", |
30 | "sample/demo.pdf", | 29 | "sample/demo.pdf", |
diff --git a/beamer/viewer/init.js b/beamer/viewer/init.js index 9192834..18269cd 100644 --- a/beamer/viewer/init.js +++ b/beamer/viewer/init.js | |||
@@ -39,18 +39,8 @@ function initCache() { | |||
39 | offlineCapableIndicator.style.visibility = "visible"; | 39 | offlineCapableIndicator.style.visibility = "visible"; |
40 | } | 40 | } |
41 | 41 | ||
42 | function checkPopupPermission() { | ||
43 | const popup = window.open("popup.html"); | ||
44 | |||
45 | if (popup == null) { | ||
46 | const warningMessage = document.getElementById("warning"); | ||
47 | warningMessage.textContent = "A pop-up blocker is active. Make sure to allow pop-ups on this website."; | ||
48 | } | ||
49 | } | ||
50 | |||
51 | function init() { | 42 | function init() { |
52 | initCache(); | 43 | initCache(); |
53 | checkPopupPermission(); | ||
54 | 44 | ||
55 | const viewer = new Viewer(); | 45 | const viewer = new Viewer(); |
56 | 46 | ||
diff --git a/popup.html b/popup.html deleted file mode 100644 index 506c26d..0000000 --- a/popup.html +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | <!doctype html> | ||
2 | |||
3 | <!-- | ||
4 | * Beamer Viewer, a web-based PDF presentation viewer | ||
5 | * Copyright (C) 2018 Pacien TRAN-GIRARD | ||
6 | * | ||
7 | * This program is free software: you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU Affero General Public License as | ||
9 | * published by the Free Software Foundation, either version 3 of the | ||
10 | * License, or (at your option) any later version. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU Affero General Public License for more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU Affero General Public License | ||
18 | * along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
19 | --> | ||
20 | |||
21 | <html> | ||
22 | <head> | ||
23 | <meta charset="utf-8"> | ||
24 | </head> | ||
25 | <body> | ||
26 | <script>window.close();</script> | ||
27 | </body> | ||
28 | </html> | ||