Skip to content

Commit

Permalink
Ensure we make privacy consent always true for chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
PixeLInc committed Jun 21, 2024
1 parent 7e9a3e8 commit 2a39814
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion shared/src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ if (typeof browser.runtime.getBrowserInfo === 'function') {
IS_CHROME = false;
}

// Force acceptance since we do not show the policy on chrome.
if (IS_CHROME) {
sessionPrivacyConsent = true;
}

async function saveToken(
{
token,
Expand Down Expand Up @@ -229,7 +234,9 @@ async function loadStorageData() {
sessionApiEngine = api_engine;
sessionSummaryType = summary_type;
sessionTargetLanguage = target_language;
sessionPrivacyConsent = privacy_consent;

if (!IS_CHROME)
sessionPrivacyConsent = privacy_consent;
}

loadStorageData();
Expand Down

0 comments on commit 2a39814

Please sign in to comment.