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

6 lines
143 B
JavaScript

const errorBtn = document.getElementById('error-dialog')
errorBtn.addEventListener('click', () => {
window.electronAPI.openErrorDialog()
})