Skip to content

Commit

Permalink
Make pushup ignore Camino, which IDs 'like Firefox/2.0.22
Browse files Browse the repository at this point in the history
  • Loading branch information
alanhogan committed Aug 8, 2009
1 parent d47ec9e commit 5dd9070
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/pushup.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ var Pushup = {
Browser: {
IE: !!(window.attachEvent &&
navigator.userAgent.indexOf('Opera') === -1),
Firefox: navigator.userAgent.indexOf('Firefox') > -1,
Firefox: navigator.userAgent.indexOf('Firefox') > -1 &&
navigator.userAgent.indexOf('Camino') < 1,
//Latest camino includes the string Firefox/2.0.22
Safari: navigator.userAgent.indexOf('AppleWebKit/') > -1 &&
/Apple/.test(navigator.vendor),
Opera: navigator.userAgent.indexOf('Opera') > -1
Expand Down

0 comments on commit 5dd9070

Please sign in to comment.