Created
September 22, 2017 16:26
-
-
Save sigdelsanjog/8f94a630cfc1b1459448ba4f71367f81 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const electron = require('electron') | |
const ipc = electron.ipcRenderer | |
document.getElementById('start').addEventListener('click', _ => { | |
ipc.send('countdown-start') | |
}) | |
ipc.on('countdown', (evt, count) => { | |
document.getElementById('count').innerHTML = count | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment