UNPKG

quickbuild

Version:

A mature, feature-complete application generator with an emphasis on speed

14 lines (12 loc) 322 B
const {ipcMain, dialog} = require('electron') ipcMain.on('save-dialog', (event) => { const options = { title: 'Save an Image', filters: [ { name: 'Images', extensions: ['jpg', 'png', 'gif'] } ] } dialog.showSaveDialog(options, (filename) => { event.sender.send('saved-file', filename) }) })