summarylogtreecommitdiffstats
path: root/prompt.js
blob: 260744014c41f4000d67377194b617353958648f (plain)
1
2
3
4
5
6
// put this preload for main-window to give it prompt()
const ipcRenderer = require('electron').ipcRenderer;

window.prompt = function(title, val) {
    return ipcRenderer.sendSync('prompt', {title, val})
};