aboutsummaryrefslogtreecommitdiff
path: root/src/app/js/kill.js
blob: 04f0a8466c1c1e903349a0709844499379767ad6 (plain)
1
2
3
4
5
6
7
8
const ipcRenderer = require("electron").ipcRenderer;

// attempts to kill something using the main process' `modules/kill.js`
// functions, it simply attempts to run `kill[function_name]()`, if it
// doesn't exist, nothing happens
module.exports = (function_name) => {
	ipcRenderer.send("kill", function_name);
}