You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
350 B
10 lines
350 B
const {ipcMain: ipc} = require('electron');
|
|
|
|
module.exports = (browserWindow, app) => {
|
|
ipc.on('keybind', (event, arg) => {
|
|
try {event.returnValue = require(`./${arg}`)(browserWindow, app);} catch {}
|
|
});
|
|
ipc.on('preload', (event, arg) => {
|
|
if (arg === 'request-platform') {event.returnValue = process.platform;}
|
|
});
|
|
}; |