Refactor tray to use provider + play/pause on click

This commit is contained in:
TC
2021-01-14 23:09:04 +01:00
parent 2861473097
commit ed09304ed7
4 changed files with 20 additions and 22 deletions

View File

@ -1,8 +0,0 @@
const clickInYoutubeMusic = (win, selector) => {
win.webContents.executeJavaScript(
`document.querySelector("${selector}").click();`,
true
);
};
module.exports = { clickInYoutubeMusic };