From c52691144928f05279cd647f97ba02064a0113f4 Mon Sep 17 00:00:00 2001 From: trivernis Date: Thu, 27 Jul 2023 18:26:14 +0200 Subject: [PATCH] Add checking for user agent to popup script --- static/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/popup.js b/static/popup.js index 3d7eda0..16ed0ab 100644 --- a/static/popup.js +++ b/static/popup.js @@ -1,5 +1,5 @@ async function showNoChromiumPopup() { - if (localStorage.getItem("no-chromium-popup-shown") != "1") { + if (navigator.userAgent.includes("Chrome") && localStorage.getItem("no-chromium-popup-shown") != "1") { const divPage = document.createElement("div"); const response = await fetch("https://no-chromium.org/popup/"); -- 2.38.5