electron/docs/fiddles/native-ui/dialogs/information-dialog/renderer.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
321 B
JavaScript
Raw Normal View History

2020-08-27 14:31:51 +00:00
const informationBtn = document.getElementById('information-dialog')
informationBtn.addEventListener('click', async () => {
const index = await window.electronAPI.openInformationDialog()
const message = `You selected: ${index === 0 ? 'yes' : 'no'}`
2020-08-27 14:31:51 +00:00
document.getElementById('info-selection').innerHTML = message
})