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

8 lines
192 B
JavaScript

const { ipcRenderer } = require('electron')
const errorBtn = document.getElementById('error-dialog')
errorBtn.addEventListener('click', event => {
ipcRenderer.send('open-error-dialog')
})