mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-20 04:22:29 -05:00
25 lines
479 B
JavaScript
25 lines
479 B
JavaScript
const bindAll = require('lodash.bindall');
|
|
const React = require('react');
|
|
|
|
const detectOS = require('../../lib/detect-os.js').default;
|
|
|
|
class ExtensionLanding extends React.Component {
|
|
constructor (props) {
|
|
super(props);
|
|
bindAll(this, [
|
|
'onSetOS'
|
|
]);
|
|
|
|
this.state = {
|
|
OS: detectOS()
|
|
};
|
|
}
|
|
|
|
onSetOS (os) {
|
|
this.setState({
|
|
OS: os
|
|
});
|
|
}
|
|
}
|
|
|
|
module.exports = ExtensionLanding;
|