Skip to content

Commit

Permalink
Fix electron deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
th-ch committed Jul 5, 2020
1 parent 2699400 commit 2a915f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const { isTesting } = require("./utils/testing");
const { setUpTray } = require("./tray");

const app = electron.app;
app.allowRendererProcessReuse = true; // https://github.com/electron/electron/issues/18397

// Adds debug features like hotkeys for triggering dev tools and reload
require("electron-debug")();
Expand Down
2 changes: 1 addition & 1 deletion menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module.exports.mainMenuTemplate = mainMenuTemplate;
module.exports.setApplicationMenu = () => {
const menuTemplate = [...mainMenuTemplate];
if (process.platform === "darwin") {
const name = app.getName();
const name = app.name;
menuTemplate.unshift({
label: name,
submenu: [
Expand Down

0 comments on commit 2a915f4

Please sign in to comment.