Skip to content

Commit

Permalink
Fix some linting regarding arrow funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
BobChao87 committed Aug 27, 2021
1 parent 1aa0e5c commit 2ce8d16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/header/Cookies.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default Vue.extend({
methods: {
setCookies(consent: boolean): void {
// We invert for these, because these are DISABLE flags. Consent: yes; disable: no
getGTagIds().forEach(id => (window as any)[`ga-disable-${id}`] = !consent);
getGTagIds().forEach((id) => { (window as any)[`ga-disable-${id}`] = !consent; });
localStorage.setItem('consent', consent.toString());
Expand Down
2 changes: 1 addition & 1 deletion plugins/google-gtag.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { getGTagIds } from '~/configs/googe-gtag.config';

export default function (): void {
const consent: boolean = (localStorage.getItem('consent') ?? 'false') === 'false';
getGTagIds().forEach(id => (window as any)[`ga-disable-${id}`] = consent);
getGTagIds().forEach((id) => { (window as any)[`ga-disable-${id}`] = consent; });
}

0 comments on commit 2ce8d16

Please sign in to comment.