Skip to content

Commit f4b168c

Browse files
authored
Merge pull request #2839 from mdaverde/ml/illumos-js
Add illumos/OpenIndiana platform check in rustup.js
2 parents dda6e5a + 2cc7e92 commit f4b168c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

www/rustup.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ function detect_platform() {
3232
if (navigator.platform == "FreeBSD amd64") {os = "unix";}
3333
if (navigator.platform == "NetBSD x86_64") {os = "unix";}
3434
if (navigator.platform == "NetBSD amd64") {os = "unix";}
35+
if (navigator.platform == "SunOS i86pc") {os = "unix";}
3536

3637
// I wish I knew by now, but I don't. Try harder.
3738
if (os == "unknown") {
@@ -49,6 +50,7 @@ function detect_platform() {
4950
if (navigator.oscpu.indexOf("Linux")!=-1) {os = "unix";}
5051
if (navigator.oscpu.indexOf("FreeBSD")!=-1) {os = "unix";}
5152
if (navigator.oscpu.indexOf("NetBSD")!=-1) {os = "unix";}
53+
if (navigator.oscpu.indexOf("SunOS")!=-1) {os = "unix";}
5254
}
5355

5456
return os;

0 commit comments

Comments
 (0)