mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
fix merge conflict mistake in #1032
This commit is contained in:
@ -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']) {
|
||||
@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user