Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
Build 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yangshun committed Jun 11, 2016
1 parent 5073585 commit 978896c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-ga",
"version": "2.0.0",
"version": "2.1.0",
"homepage": "https://github.com/react-ga/react-ga",
"authors": [
"Tay Yang Shun <tay.yang.shun@gmail.com>"
Expand Down
12 changes: 12 additions & 0 deletions dist/react-ga.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,18 @@ var ReactGA = {
}
}

if (args.transport) {
if (typeof args.transport !== 'string') {
warn('`args.transport` must be a string.');
} else {
if (['beacon', 'xhr', 'image'].indexOf(args.transport) === -1) {
warn('`args.transport` must be either one of these values: `beacon`, `xhr` or `image`');
}

fieldObject.transport = args.transport;
}
}

// Send to GA
this.send(fieldObject);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/react-ga.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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-ga",
"version": "2.0.0",
"version": "2.1.0",
"description": "React Google Analytics Module.",
"main": "src/index.js",
"scripts": {
Expand Down

0 comments on commit 978896c

Please sign in to comment.