Skip to content

Commit 2734308

Browse files
committed
Detect servo's Mac platform string.
Makes the platform detection work for the servo nightly on MacOS. Fixes #854.
1 parent e75f58f commit 2734308

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

www/rustup.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ function detect_platform() {
1515
if (navigator.platform == "Linux aarch64") {os = "unix";}
1616
if (navigator.platform == "Linux armv6l") {os = "unix";}
1717
if (navigator.platform == "Linux armv7l") {os = "unix";}
18+
if (navigator.platform == "Mac") {os = "unix";}
1819
if (navigator.platform == "Win32") {os = "win";}
1920
if (navigator.platform == "FreeBSD x86_64") {os = "unix";}
2021
if (navigator.platform == "FreeBSD amd64") {os = "unix";}

0 commit comments

Comments
 (0)