diff --git a/src/components/extension-landing/extension-landing.jsx b/src/components/extension-landing/extension-landing.jsx
index 44cb3fb01..c883d294f 100644
--- a/src/components/extension-landing/extension-landing.jsx
+++ b/src/components/extension-landing/extension-landing.jsx
@@ -1,7 +1,7 @@
const bindAll = require('lodash.bindall');
const React = require('react');
-const OS_ENUM = require('./os-enum.js');
+const detectOS = require('../../lib/detect-os.js').default;
class ExtensionLanding extends React.Component {
constructor (props) {
@@ -10,16 +10,8 @@ class ExtensionLanding extends React.Component {
'onSetOS'
]);
- // @todo use bowser for browser detection
- let detectedOS = OS_ENUM.WINDOWS;
- if (window.navigator && window.navigator.platform) {
- if (window.navigator.platform === 'MacIntel') {
- detectedOS = OS_ENUM.MACOS;
- }
- }
-
this.state = {
- OS: detectedOS
+ OS: detectOS()
};
}
diff --git a/src/components/extension-landing/extension-requirements.jsx b/src/components/extension-landing/extension-requirements.jsx
index 67bc2ba46..3754eb02c 100644
--- a/src/components/extension-landing/extension-requirements.jsx
+++ b/src/components/extension-landing/extension-requirements.jsx
@@ -4,6 +4,8 @@ const React = require('react');
const FlexRow = require('../../components/flex-row/flex-row.jsx');
+const {CHROME_APP_RELEASED} = require('../../lib/feature-flags.js');
+
require('./extension-landing.scss');
const ExtensionRequirements = props => (
@@ -12,13 +14,64 @@ const ExtensionRequirements = props => (
+ Windows 10 version 1709+
+
+
+
+ macOS 10.13+
+
+ {CHROME_APP_RELEASED && (
+
+ ChromeOS
+
+
+
+ Android 5.0+
+
+
+ Bluetooth
+
+
+
+ Scratch Link
+
+
-
-
-
-
+
+
+ ChromeOS
+
+
+
+ Android 5.0+
+
+
+
+
-
-
-
+
+
+
+
-
- {this.state.OS === OS_ENUM.WINDOWS ?
-
+
+
+
-
+
-
-
+
-
-
+
+
+
-
-
+
-
-
+
- Windows 10 version 1709+
-
-
-
- macOS 10.13+
-
-
-
- Bluetooth 4.0
-
-
-
- Scratch Link
-
-
-
-
+
- Windows 10 version 1709+
-
-
-
- macOS 10.13+
-
-
-
- Bluetooth 4.0
-
-
-
- Scratch Link
-
-
-
-
-
-
+
+
+
+
+
-
-
+
- Windows 10 version 1709+
-
-
-
- macOS 10.13+
-
-
-
- Bluetooth 4.0
-
-
-
- Scratch Link
-
-
-
-
+