Skip to content

Commit

Permalink
adding gtag as a global variable in the eslint file
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioCasCeb committed Apr 30, 2024
1 parent ce759d7 commit 37cd7eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"ecmaVersion": 2018,
"sourceType": "module"
},
"globals": {
"gtag": "readonly"
},
"extends": ["eslint:recommended", "prettier"],
"ignorePatterns": ["dist", "node_modules", "bin"]
}
1 change: 0 additions & 1 deletion packages/web/src/scripts/consent-banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ analyticsAcceptBtn.addEventListener("click", () => {
* @param { Object } preferences
*/
function updateConsentMode(preferences) {
// eslint-disable-next-line no-undef
gtag('consent', 'update', preferences)
localStorage.setItem('consentMode', JSON.stringify(preferences))
}

0 comments on commit 37cd7eb

Please sign in to comment.