Files
youtube-music/plugins/precise-volume/back.js
2021-04-22 05:34:54 +03:00

20 lines
436 B
JavaScript

/*
This is used to determine if plugin is actually active
(not if its only enabled in options)
*/
let enabled = false;
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 = () => {
return enabled;
};