aboutsummaryrefslogtreecommitdiff
path: root/src/modules/window.js
blob: 3b5c76f1d1408ec7b89c80a6fc8df2ca4e59cbcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const ipcMain = require("electron").ipcMain;

let win = {};

// logs into the dev tools of the renderer
win.log = (msg) => {
	ipcMain.emit("win-log", msg, msg);
}

// sends an alert to the renderer
win.alert = (msg) => {
	ipcMain.emit("win-alert", msg, msg);
}

module.exports = win;