Skip to content

Commit

Permalink
add chrome agent.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabehopper committed Oct 23, 2015
1 parent fb4d5b6 commit 7ece6ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
SCRIPTS: 'scripts',
TEMPLATE_FILES: 'templateFiles'
},
AGENT_TYPES = ['Android', 'Browser', 'iOS', 'iPad', 'iPhone', 'Mac', 'Mobile', 'webOS', 'Windows', 'Cordova', 'CordovaDefault'],
AGENT_TYPES = ['Android', 'Browser', 'iOS', 'iPad', 'iPhone', 'Mac', 'Mobile', 'webOS', 'Windows', 'Cordova', 'CordovaDefault', 'Chrome'],
cache = {
templates: {},
files: {}
Expand Down Expand Up @@ -152,6 +152,9 @@
} else if (req.query['agent'] === type) {
agentTypes.push(req.query['agent']);
newVal = '1';
} else if (type === 'Chrome' &&agent.Browser.name == 'chrome' ) {
agentTypes.push(type);
newVal = '1';
}

hash = hash + newVal;
Expand Down

0 comments on commit 7ece6ce

Please sign in to comment.