use config.plugins.isEnabled

This commit is contained in:
Araxeus
2021-11-22 22:52:38 +02:00
parent 4362101c0a
commit c99b95e611
4 changed files with 18 additions and 31 deletions

View File

@ -27,7 +27,7 @@ const post = async (data) => {
fetch(url, { method: 'POST', headers, body: JSON.stringify({ data }) }).catch(e => console.log(`Error: '${e.code || e.errno}' - when trying to access obs-tuna webserver at port ${port}`));
}
module.exports = async () => {
module.exports = async (win) => {
ipcMain.on('timeChanged', async (_, t) => {
if (!data.title) return;
data.progress = secToMilisec(t);