From fd702a616e6131641e4f200b79da9a2eaff9f620 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 1 Feb 2017 18:57:06 +0000 Subject: [PATCH 1/2] Add FreeBSD epiphany detection. Fixes rust-www/#692 --- www/rustup.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/rustup.js b/www/rustup.js index 46450c2897..2cb1e711a7 100644 --- a/www/rustup.js +++ b/www/rustup.js @@ -33,6 +33,8 @@ function detect_platform() { if (os == "unknown") { if (navigator.appVersion.indexOf("Win")!=-1) {os = "win";} if (navigator.appVersion.indexOf("Mac")!=-1) {os = "unix";} + // rust-www/#692 - FreeBSD epiphany! + if (navigator.appVersion.indexOf("FreeBSD")!=-1) {os = "unix";} } return os; From ef525255c073a834748f7149a283181088cebd0e Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 1 Feb 2017 19:30:17 +0000 Subject: [PATCH 2/2] Add fallback install instructions when browser detection fails --- www/index.html | 31 +++++++++++++++++++++++++------ www/rustup.css | 3 ++- 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/www/index.html b/www/index.html index 8f7c550034..09158b6432 100644 --- a/www/index.html +++ b/www/index.html @@ -50,19 +50,38 @@
diff --git a/www/rustup.css b/www/rustup.css index 0f34643b36..76b694f1ab 100644 --- a/www/rustup.css +++ b/www/rustup.css @@ -125,7 +125,8 @@ hr { letter-spacing: 0.1rem; } -#platform-instructions-unknown div { +/* This is the box that prints navigator.platform, navigator.appVersion values */ +#platform-instructions-unknown > div:first-of-type { font-size: 16px; line-height: 2rem; }