mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-30 03:00:57 +00:00
14 lines
325 B
TypeScript
14 lines
325 B
TypeScript
import { ipcMain } from 'electron';
|
|
import { IPC } from './ipc-events.const';
|
|
|
|
let cb;
|
|
export const getSettings = (win, cbIN) => {
|
|
cb = cbIN;
|
|
win.webContents.send(IPC.TRANSFER_SETTINGS_REQUESTED);
|
|
};
|
|
|
|
ipcMain.on(IPC.TRANSFER_SETTINGS_TO_ELECTRON, getSettingsCb);
|
|
|
|
function getSettingsCb(ev, settings) {
|
|
cb(settings);
|
|
}
|