Skip to content

Commit

Permalink
Fix the stop button
Browse files Browse the repository at this point in the history
Aparently window.stop() is a thing, and ESLint/TypeScript let me do this. Sigh.

A potential fix: facebook/create-react-app#1840
  • Loading branch information
captbaritone committed Nov 30, 2019
1 parent 567ad29 commit ab6d1ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/components/MainWindow/ActionButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const ActionButtons = React.memo(() => {
const play = useActionCreator(Actions.play);
const pause = useActionCreator(Actions.pause);
const next = useActionCreator(Actions.next);
const stop = useActionCreator(Actions.stop);
return (
<div className="actions">
<div id="previous" onClick={previous} title="Previous Track" />
Expand Down

0 comments on commit ab6d1ff

Please sign in to comment.