Skip to content

Commit

Permalink
Fix for compat unknown UA detection (ticket 898)
Browse files Browse the repository at this point in the history
  • Loading branch information
fakedarren committed May 3, 2010
1 parent f3d4567 commit 31e372f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Browser/Browser.js
Expand Up @@ -227,7 +227,7 @@ if (Browser.opera){
}

if (Browser.name == 'unknown'){
switch ((userAgent.toLowerCase().match(/(webkit|khtml|gecko)/) || [])[0]){
switch ((navigator.userAgent.toLowerCase().match(/(webkit|khtml|gecko)/) || [])[0]){
case 'webkit':
case 'khtml':
Browser.Engine.webkit = true;
Expand Down

0 comments on commit 31e372f

Please sign in to comment.