mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
setup on page reload
This commit is contained in:
@ -7,7 +7,7 @@ let enabled = false;
|
||||
module.exports = (win) => {
|
||||
enabled = true;
|
||||
|
||||
win.webContents.once("did-finish-load", () => {
|
||||
win.webContents.on("did-finish-load", () => {
|
||||
win.webContents.send("did-finish-load");
|
||||
});
|
||||
};
|
||||
|
||||
@ -16,7 +16,7 @@ module.exports = (options) => {
|
||||
setupGlobalShortcuts(options);
|
||||
}
|
||||
|
||||
ipcRenderer.once("did-finish-load", () => {
|
||||
ipcRenderer.on("did-finish-load", () => {
|
||||
injectVolumeHud();
|
||||
// if hideVideo is disabled
|
||||
if ($("#main-panel")?.computedStyleMap().get("display").value !== "none") {
|
||||
|
||||
Reference in New Issue
Block a user