Skip to content

Commit

Permalink
refactor: inline args direct assignment;
Browse files Browse the repository at this point in the history
- saves another 5 bytes lolol
  • Loading branch information
lukeed committed Oct 17, 2018
1 parent 3dacb7c commit 8ece2eb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
var KEY = 'ga:user';

export default function (ua, args, toWait) {
args = args || {};

Object.assign(args, {
args = Object.assign({}, args, {
tid: ua,
cid: (localStorage[KEY] = localStorage[KEY] || Math.random() + '.' + Math.random())
});
Expand Down

0 comments on commit 8ece2eb

Please sign in to comment.