Skip to content

Commit

Permalink
Add check for window.navigator.platform
Browse files Browse the repository at this point in the history
window.navigator.appVersion doesn't contain Linux for me on Ubuntu/Firefox
  • Loading branch information
akoeplinger committed Feb 7, 2016
1 parent 5bef9c6 commit c35a7c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions download/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ <h2>Weekly updates</h2>
$('#download-' + os).addClass('active');
}
if (!window.location.hash) {
if (window.navigator.appVersion.search('Linux') > 0) {
if (window.navigator.appVersion.search('Linux') || window.navigator.platform.search('Linux') > 0) {
activate('lin');
} else if (window.navigator.appVersion.search('Windows') > 0) {
} else if (window.navigator.appVersion.search('Windows') || window.navigator.platform.search('Windows') > 0) {
activate('win');
}
}
Expand Down

0 comments on commit c35a7c5

Please sign in to comment.