Skip to content

Commit

Permalink
fix: replace missing assign()
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Jul 26, 2017
1 parent 1cc1279 commit 275565e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/ganalytics.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function encode(obj) {

function GA(ua, opts) {
opts = opts || {};
this.args = assign({ tid:ua, cid:UID }, opts);
this.args = Object.assign({ tid:ua, cid:UID }, opts);
this.send('pageview');
}

Expand Down
2 changes: 1 addition & 1 deletion dist/ganalytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function encode(obj) {

function GA(ua, opts) {
opts = opts || {};
this.args = assign({ tid:ua, cid:UID }, opts);
this.args = Object.assign({ tid:ua, cid:UID }, opts);
this.send('pageview');
}

Expand Down
2 changes: 1 addition & 1 deletion dist/ganalytics.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function encode(obj) {

function GA(ua, opts) {
opts = opts || {};
this.args = assign({ tid:ua, cid:UID }, opts);
this.args = Object.assign({ tid:ua, cid:UID }, opts);
this.send('pageview');
}

Expand Down

0 comments on commit 275565e

Please sign in to comment.