From 02cce20931ef6c929df889d1e0753b9e8cc26ff9 Mon Sep 17 00:00:00 2001 From: Bruno Bernardino Date: Mon, 8 Apr 2024 14:59:56 +0100 Subject: [PATCH] Don't show privacy consent popup in chrome --- shared/src/popup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/src/popup.js b/shared/src/popup.js index 275eb88..3c82d19 100644 --- a/shared/src/popup.js +++ b/shared/src/popup.js @@ -419,7 +419,7 @@ async function setup() { target_language, privacy_consent, } = {}) { - if (privacy_consent && token) { + if ((privacy_consent || IS_CHROME) && token) { tokenInput.value = token; if (api_token) { @@ -502,7 +502,7 @@ async function setup() { } } } - } else if (!privacy_consent) { + } else if (!privacy_consent && !IS_CHROME) { setStatus(''); privacyConsentDiv.style.display = ''; tokenDiv.style.display = 'none';