Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
imnutz committed Nov 8, 2024
1 parent 37971ec commit 7193d0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/loadClients.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function applyToClient(client, method) {
var TREASURE_KEYS = [
'init',
'set',
'collectTags',
'blockEvents',
'unblockEvents',
'setSignedMode',
Expand All @@ -34,8 +35,7 @@ var TREASURE_KEYS = [
'trackClicks',
'fetchUserSegments',
'fetchServerCookie',
'ready',
'collectTags'
'ready'
]

/*
Expand Down
4 changes: 2 additions & 2 deletions src/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
}

var methods = [
'collectTags',
'addRecord',
'blockEvents',
'fetchServerCookie',
Expand All @@ -28,8 +29,7 @@
'trackEvent',
'trackPageview',
'trackClicks',
'unblockEvents',
'collectTags'
'unblockEvents'
]
for (var i = 0; i < methods.length; i++) {
var method = methods[i]
Expand Down

0 comments on commit 7193d0c

Please sign in to comment.