mirror of
https://github.com/felixrieseberg/macintosh.js.git
synced 2024-06-15 06:29:33 +00:00
24 lines
391 B
JavaScript
24 lines
391 B
JavaScript
const { ipcRenderer } = require("electron");
|
|
|
|
module.exports = {
|
|
quit() {
|
|
ipcRenderer.invoke("quit");
|
|
},
|
|
|
|
devtools() {
|
|
ipcRenderer.invoke("devtools");
|
|
},
|
|
|
|
getIsDevMode() {
|
|
return ipcRenderer.invoke("getIsDevMode");
|
|
},
|
|
|
|
setIsDevMode() {
|
|
return ipcRenderer.invoke("setIsDevMode");
|
|
},
|
|
|
|
getAppVersion() {
|
|
return ipcRenderer.invoke("getAppVersion");
|
|
},
|
|
};
|