Skip to content

Commit

Permalink
feat(add-consent): remove error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
UralKrc committed Apr 10, 2024
1 parent fabd6ac commit 43d5aaf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/consent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,5 @@ import { getZaraz } from './helpers/get-zaraz';

export function setConsent(key: string, value: boolean): void {
const zaraz = getZaraz();
if (zaraz && zaraz.consent) {
zaraz.consent[key] = value;
} else {
console.error('Zaraz consent API is not available');
}
zaraz.consent[key] = value;
}

0 comments on commit 43d5aaf

Please sign in to comment.