update electron to v13

This commit is contained in:
Karsten Hassel
2021-07-04 17:46:22 +02:00
parent aad8141e27
commit ad13de3588
14 changed files with 25 additions and 20 deletions

View File

@@ -102,7 +102,12 @@ app.on("ready", function () {
// Quit when all windows are closed.
app.on("window-all-closed", function () {
createWindow();
if (process.env.JEST_WORKER_ID !== undefined) {
// if we are running with jest
app.quit();
} else {
createWindow();
};
});
app.on("activate", function () {