discord-sandboxed/renderer.js

15 lines
422 B
JavaScript
Raw Normal View History

2019-10-12 02:52:09 +00:00
require('electron').ipcRenderer.on('ping', (event, message) => {
if (message === 'mic-open'){
console.log("mic is open")
2019-10-13 04:07:50 +00:00
let unmute = document.getElementById("unmute");
unmute.volume=0.3
unmute.play();
2019-10-12 02:52:09 +00:00
}
if (message === 'mic-closed'){
console.log("mic is closed")
2019-10-13 04:07:50 +00:00
let mute = document.getElementById("mute");
mute.volume=0.3
mute.play();
2019-10-12 02:52:09 +00:00
}
})