disable native volume-slider listeners

This commit is contained in:
Araxeus
2021-04-22 05:34:54 +03:00
parent 5fa8f3ef6f
commit 021d2a8a54
3 changed files with 42 additions and 5 deletions

View File

@ -3,8 +3,15 @@ This is used to determine if plugin is actually active
(not if its only enabled in options)
*/
let enabled = false;
module.exports = () => {
module.exports = (win) => {
enabled = true;
//did-finish-load is called after DOMContentLoaded.
//thats the reason the timing is controlled from main
win.webContents.once("did-finish-load", () => {
win.webContents.send("restoreAddEventListener");
});
};
module.exports.enabled = () => {