This commit is contained in:
Araxeus
2021-04-22 16:30:34 +03:00
parent 65f6822199
commit 0bc1b5e0d3
3 changed files with 16 additions and 16 deletions

View File

@ -7,8 +7,9 @@ let enabled = false;
module.exports = (win) => {
enabled = true;
//did-finish-load is called after DOMContentLoaded.
//thats the reason the timing is controlled from main
// youtube-music register some of the target listeners after DOMContentLoaded
// did-finish-load is called after all elements finished loading, including said listeners
// Thats the reason the timing is controlled from main
win.webContents.once("did-finish-load", () => {
win.webContents.send("restoreAddEventListener");
});