Skip to content

Commit

Permalink
Don't show privacy consent popup in chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoBernardino committed Apr 8, 2024
1 parent aed1608 commit 02cce20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/src/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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';
Expand Down

0 comments on commit 02cce20

Please sign in to comment.