Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@sigdelsanjog
Created September 22, 2017 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sigdelsanjog/8f94a630cfc1b1459448ba4f71367f81 to your computer and use it in GitHub Desktop.
Save sigdelsanjog/8f94a630cfc1b1459448ba4f71367f81 to your computer and use it in GitHub Desktop.
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