1
0
Fork 0
forked from 0x2620/oxjs

browser detection

This commit is contained in:
j 2011-03-01 12:06:37 +01:00
commit eacecd83fb
2 changed files with 20 additions and 9 deletions

View file

@ -44,9 +44,14 @@ $(function() {
userAgent = name;
return false;
}
if (!userAgent && navigator.userAgent.indexOf('Gecko') > -1)
userAgent = 'Firefox';
}
});
if (!userAgent && $.browser.mozilla) {
userAgent = 'Firefox';
}
if (!userAgent && $.browser.webkit) {
userAgent = 'Chrome';
}
return userAgent;
}