diff --git a/source/Ox.UI/Ox.UI.js b/source/Ox.UI/Ox.UI.js index 62c8ac74..2a7ff527 100644 --- a/source/Ox.UI/Ox.UI.js +++ b/source/Ox.UI/Ox.UI.js @@ -16,7 +16,7 @@ Ox.load.UI = function(options, callback) { }, { name: 'Chrome', - regexp: /Chrome\/(\d+)\./, + regexp: /(Chrome|CriOS)\/(\d+)\./, url: 'http://www.google.com/chrome/', version: 10 }, @@ -46,7 +46,7 @@ Ox.load.UI = function(options, callback) { browsers.forEach(function(browser) { var match = browser.regexp && browser.regexp.exec(navigator.userAgent); - if (match && match[1] >= browser.version) { + if (match && match[match.length - 1] >= browser.version) { browserSupported = true; } });