aboutsummaryrefslogtreecommitdiff
path: root/pointless/viewer
diff options
context:
space:
mode:
Diffstat (limited to 'pointless/viewer')
-rw-r--r--pointless/viewer/init.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/pointless/viewer/init.js b/pointless/viewer/init.js
index cb01fab..5f04eac 100644
--- a/pointless/viewer/init.js
+++ b/pointless/viewer/init.js
@@ -29,10 +29,9 @@ function initCache() {
29} 29}
30 30
31function checkPopupPermission() { 31function checkPopupPermission() {
32 try { 32 const popup = window.open("popup.html");
33 const popup = window.open(); 33
34 popup.close(); 34 if (popup == null) {
35 } catch(error) {
36 const warningMessage = document.getElementById("warning"); 35 const warningMessage = document.getElementById("warning");
37 warningMessage.textContent = "A pop-up blocker is active. Make sure to allow pop-ups on this website."; 36 warningMessage.textContent = "A pop-up blocker is active. Make sure to allow pop-ups on this website.";
38 } 37 }