discord-sandboxed/renderer.js
2019-10-12 21:07:50 -07:00

15 lines
422 B
JavaScript

require('electron').ipcRenderer.on('ping', (event, message) => {
if (message === 'mic-open'){
console.log("mic is open")
let unmute = document.getElementById("unmute");
unmute.volume=0.3
unmute.play();
}
if (message === 'mic-closed'){
console.log("mic is closed")
let mute = document.getElementById("mute");
mute.volume=0.3
mute.play();
}
})