mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
18 lines
318 B
JavaScript
18 lines
318 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;
|
|
|
|
win.webContents.on("did-finish-load", () => {
|
|
win.webContents.send("did-finish-load");
|
|
});
|
|
};
|
|
|
|
module.exports.enabled = () => {
|
|
return enabled;
|
|
};
|