Skip to content

Commit

Permalink
use arguments object instead of arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
walsh9 committed Oct 19, 2023
1 parent 3f2effa commit 1d1b24b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/4.analytics.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export default defineNuxtPlugin(() => {
window.dataLayer = window.dataLayer || []

// init gtag function
function gtag(...args) {
dataLayer.push(args)
function gtag() {
dataLayer.push(arguments) // eslint-disable-line prefer-rest-params
}
gtag('js', new Date())
gtag('set', 'send_page_view', false)
Expand Down

0 comments on commit 1d1b24b

Please sign in to comment.