mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-21 00:59:29 +00:00
move to constructor
This commit is contained in:
parent
ad9d17ad8e
commit
a08f792966
1 changed files with 4 additions and 2 deletions
|
|
@ -7,6 +7,10 @@ const PRESET_TRANSITION_SECONDS = 2.7;
|
|||
const MILLISECONDS_BETWEEN_PRESET_TRANSITIONS = 15000;
|
||||
|
||||
class MilkdropWindow extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this._handleKeyboardInput = this._handleKeyboardInput.bind(this);
|
||||
}
|
||||
componentDidMount() {
|
||||
require.ensure(
|
||||
[
|
||||
|
|
@ -44,8 +48,6 @@ class MilkdropWindow extends React.Component {
|
|||
"butterchurn"
|
||||
);
|
||||
|
||||
this._handleKeyboardInput = this._handleKeyboardInput.bind(this);
|
||||
|
||||
require.ensure(
|
||||
["butterchurn-presets"],
|
||||
require => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue