forked from 0x2620/oxjs
browser detection
This commit is contained in:
parent
62e6c0d84c
commit
eacecd83fb
2 changed files with 20 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue