Skip to content

Commit

Permalink
Ignored the eslint error for the gtag function in the consent-banner …
Browse files Browse the repository at this point in the history
…script
  • Loading branch information
SergioCasCeb committed Apr 30, 2024
1 parent cdacaba commit ce759d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/web/src/scripts/consent-banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ analyticsAcceptBtn.addEventListener("click", () => {
* @param { Object } preferences
*/
function updateConsentMode(preferences) {
// eslint-disable-next-line no-undef
gtag('consent', 'update', preferences)

Check failure

Code scanning / ESLint

disallow the use of undeclared variables unless mentioned in `/*global */` comments Error

'gtag' is not defined.
localStorage.setItem('consentMode', JSON.stringify(preferences))
}

0 comments on commit ce759d7

Please sign in to comment.