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:
@ -63,7 +63,7 @@ module.exports = (win) => {
|
||||
const { playPause, next, previous, like, dislike } = getSongControls(win);
|
||||
|
||||
// If the page is ready, register the callback
|
||||
win.on("ready-to-show", () => {
|
||||
win.once("ready-to-show", () => {
|
||||
controls = [previous, playPause, next, like, dislike];
|
||||
|
||||
// Register the callback
|
||||
|
||||
Reference in New Issue
Block a user