Skip to content

Commit 2a915f4

Browse files
committed
Fix electron deprecation warnings
1 parent 2699400 commit 2a915f4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const { isTesting } = require("./utils/testing");
1818
const { setUpTray } = require("./tray");
1919

2020
const app = electron.app;
21+
app.allowRendererProcessReuse = true; // https://github.com/electron/electron/issues/18397
2122

2223
// Adds debug features like hotkeys for triggering dev tools and reload
2324
require("electron-debug")();

menu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ module.exports.mainMenuTemplate = mainMenuTemplate;
7171
module.exports.setApplicationMenu = () => {
7272
const menuTemplate = [...mainMenuTemplate];
7373
if (process.platform === "darwin") {
74-
const name = app.getName();
74+
const name = app.name;
7575
menuTemplate.unshift({
7676
label: name,
7777
submenu: [

0 commit comments

Comments
 (0)