mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-30 11:10:04 +00:00
13 lines
278 B
JavaScript
13 lines
278 B
JavaScript
const electron = require('electron');
|
|
|
|
let cb;
|
|
module.exports = (win, cb_) => {
|
|
cb = cb_;
|
|
win.webContents.send('TRANSFER_SETTINGS_REQUESTED');
|
|
};
|
|
|
|
electron.ipcMain.on('TRANSFER_SETTINGS_TO_ELECTRON', getSettingsCb);
|
|
|
|
function getSettingsCb(ev, settings) {
|
|
cb(settings);
|
|
}
|