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

5 lines
143 B
JavaScript

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