From 596f11043ffcd57d03ad774e2ba3c96bbaf5214e Mon Sep 17 00:00:00 2001 From: pacien Date: Mon, 23 Oct 2023 18:27:28 +0200 Subject: app: remove init popup blocker check --- appcache.js | 1 - beamer/viewer/init.js | 10 ---------- popup.html | 28 ---------------------------- 3 files changed, 39 deletions(-) delete mode 100644 popup.html diff --git a/appcache.js b/appcache.js index ee9e356..067c968 100644 --- a/appcache.js +++ b/appcache.js @@ -24,7 +24,6 @@ class AppCache { this.cacheName = "cache"; this.filesToCache = [ ".", - "popup.html", "appcache.js", "favicon.ico", "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() { offlineCapableIndicator.style.visibility = "visible"; } -function checkPopupPermission() { - const popup = window.open("popup.html"); - - if (popup == null) { - const warningMessage = document.getElementById("warning"); - warningMessage.textContent = "A pop-up blocker is active. Make sure to allow pop-ups on this website."; - } -} - function init() { initCache(); - checkPopupPermission(); const viewer = new Viewer(); diff --git a/popup.html b/popup.html deleted file mode 100644 index 506c26d..0000000 --- a/popup.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - - -
- - - - - - -- cgit v1.2.3