Add checking for user agent to popup script #9

Merged
Trivernis merged 1 commits from main into prod 1 year ago

@ -1,5 +1,5 @@
async function showNoChromiumPopup() { 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 divPage = document.createElement("div");
const response = await fetch("https://no-chromium.org/popup/"); const response = await fetch("https://no-chromium.org/popup/");

Loading…
Cancel
Save