diff --git a/index.js b/index.js index b0e80c8..564184f 100644 --- a/index.js +++ b/index.js @@ -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: {} @@ -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;