mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
win.once() instead of win.on
This commit is contained in:
@ -24,7 +24,7 @@ module.exports = win => {
|
||||
const {playPause, next, previous} = getSongControls(win);
|
||||
|
||||
// If the page is ready, register the callback
|
||||
win.on('ready-to-show', () => {
|
||||
win.once('ready-to-show', () => {
|
||||
registerCallback(songInfo => {
|
||||
// Wait for song to start before setting thumbar
|
||||
if (songInfo.title === '') {
|
||||
|
||||
Reference in New Issue
Block a user