Files
Simon Hofmann 49f146494e Bugfix/559/limit window region to main screen dimensions (#561)
* (#559) Adjust getRegion implementation

It’ll now cut off window regions at the borders of the main screen, avoiding errors due to out of bounds regions

* (#559) Moved window e2e test into dedicated e2e subpackage
2024-02-16 23:41:54 +01:00

7 lines
156 B
JavaScript

const { ipcRenderer } = require("electron");
const close = document.getElementById("exit");
close.onclick = () => {
ipcRenderer.send("main", "quit");
};