Skip to content

Commit

Permalink
Fix platform detection in Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
cburgdorf committed Aug 29, 2022
1 parent c812c4d commit 4e7c228
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -334,11 +334,11 @@ <h4 class="font-semibold mb-4">Project</h4>

var detectedOS = "unknown_os";

if (navigator.appVersion.indexOf("Mac") != -1) {
if (navigator.userAgent.indexOf("Mac") != -1) {
detectedOS = "mac";
} else if (navigator.appVersion.indexOf("Win") != -1) {
} else if (navigator.userAgent.indexOf("Win") != -1) {
detectedOS = "windows";
} else if (navigator.appVersion.indexOf("Linux") != -1) {
} else if (navigator.userAgent.indexOf("Linux") != -1) {
detectedOS = "linux";
}

Expand Down

0 comments on commit 4e7c228

Please sign in to comment.