mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
disable native volume-slider listeners
This commit is contained in:
@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user