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