Skip to content

Commit

Permalink
Merge pull request #2080 from kyoshino/bug-1020764-yosemite
Browse files Browse the repository at this point in the history
Fix Bug 1020764 - Users on OS X Yosemite see a system requirements error
  • Loading branch information
alexgibson committed Jun 5, 2014
2 parents 21f4a41 + f0c2530 commit 930e574
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion media/js/base/site.js
Expand Up @@ -56,7 +56,7 @@
if (pf.indexOf("MacPPC") !== -1) {
return 'oldmac';
}
if (/Mac OS X 10.[0-5]/.test(ua)) {
if (/Mac OS X 10.[0-5]\D/.test(ua)) {
return 'oldmac';
}
if (pf.indexOf('iPhone') !== -1 ||
Expand Down
1 change: 1 addition & 0 deletions media/js/test/spec/site.js
Expand Up @@ -40,6 +40,7 @@ describe("site.js", function () {

it("should identify OSX", function () {
expect(window.site.getPlatform('Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:30.0) Gecko/20100101 Firefox/30.0', 'foo')).toBe('osx');
expect(window.site.getPlatform('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10) AppleWebKit/538.10.3 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1', 'foo')).toBe('osx');
});

it("should identify Firefox OS", function () {
Expand Down

0 comments on commit 930e574

Please sign in to comment.