Merge pull request 'Add checking for user agent to popup script' (#9) from main into prod

Reviewed-on: Trivernis/no-chromium#9
prod
Trivernis 1 year ago
commit 016e3a14c5

@ -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