setup on page reload

This commit is contained in:
Araxeus
2021-05-12 18:58:29 +03:00
parent 7bc35f4cee
commit 8a07fccf8f
2 changed files with 2 additions and 2 deletions

View File

@ -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");
}); });
}; };

View File

@ -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") {