An electron-based WIP aesthetic file explorer ^^
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.
FileKade/scripts/keybinds/process/handleIpc.js

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;}
});
};