Skip to content

Commit

Permalink
fix merge conflict mistake in #1032
Browse files Browse the repository at this point in the history
  • Loading branch information
Araxeus committed Mar 29, 2023
1 parent 05278ab commit 4c07817
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions providers/song-info-front.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ module.exports = () => {
apiEvent.detail.addEventListener('videodatachange', (name, _dataEvent) => {
if (name !== 'dataloaded') return;
video.dispatchEvent(srcChangedEvent);
setTimeout(sendSongInfo());
setTimeout(sendSongInfo, 200);
})

for (const status of ['playing', 'pause']) {
Expand All @@ -100,7 +100,7 @@ module.exports = () => {
|| e.href?.includes("browse/MPREb")
)?.textContent;

data.videoDetails.elapsedSeconds = Math.floor(video.currentTime);
data.videoDetails.elapsedSeconds = 0;
data.videoDetails.isPaused = false;
ipcRenderer.send("video-src-changed", JSON.stringify(data));
}
Expand Down

0 comments on commit 4c07817

Please sign in to comment.