Skip to content

Commit 089cfe4

Browse files
remove
1 parent 3f34f35 commit 089cfe4

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/renderer/components/Main.tsx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -151,22 +151,6 @@ export default function Main() {
151151
}
152152

153153
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-
// })();
170154

171155
setPaused(true);
172156
},

0 commit comments

Comments
 (0)