Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates electron and associated dependencies to the latest #2102

Merged
merged 18 commits into from
Jun 18, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ PUBLISH ?= onTag
# Main targets
.PHONY: start
start:
@NODE_ENV=$(NODE_ENV) DEV_SERVER=$(DEV_SERVER) npx electron .
@NODE_ENV=$(NODE_ENV) DEV_SERVER=$(DEV_SERVER) npx electron . --inspect
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you intend to leave this debugging in for start and not just dev? Not sure if I am reading it right.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left it there on purpose.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

also why did we remove rebuild-deps?


.PHONY: dev
dev:
Expand Down
1 change: 1 addition & 0 deletions desktop/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ module.exports = function main() {
);
});
});
mainWindow.reload();
});

ipcMain.on('setAutoHideMenuBar', function (event, autoHideMenuBar) {
Expand Down
7 changes: 6 additions & 1 deletion desktop/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ const { contextBridge, ipcRenderer } = require('electron');
contextBridge.exposeInMainWorld('electron', {
send: (channel, data) => {
// whitelist channels
let validChannels = ['appCommand', 'setAutoHideMenuBar', 'settingsUpdate'];
let validChannels = [
'appCommand',
'clearCookies',
'setAutoHideMenuBar',
'settingsUpdate',
];
if (validChannels.includes(channel)) {
ipcRenderer.send(channel, data);
}
Expand Down