File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -151,22 +151,6 @@ export default function Main() {
151
151
}
152
152
153
153
player . onfinishedtrack = autoPlayNextSong ;
154
- // /**
155
- // * @important throttle this to once every 500ms
156
- // * to keep from updating the store too often causing
157
- // * react to re-render too much.
158
- // * @todo : this could be moved to the static player component
159
- // */
160
- // player.ontimeupdate = (() => {
161
- // let lastUpdate = 0;
162
- // return (currentTrackTime: number, _currentTrackIndex: number) => {
163
- // const now = Date.now();
164
- // if (now - lastUpdate >= 500) {
165
- // setCurrentSongTime(currentTrackTime / 1000);
166
- // lastUpdate = now;
167
- // }
168
- // };
169
- // })();
170
154
171
155
setPaused ( true ) ;
172
156
} ,
You can’t perform that action at this time.
0 commit comments