Skip to content

Commit

Permalink
major version bump to electron and other packages
Browse files Browse the repository at this point in the history
  • Loading branch information
reZach committed Jun 29, 2022
1 parent 09ae3c5 commit 0dd8e74
Show file tree
Hide file tree
Showing 3 changed files with 4,566 additions and 4,783 deletions.
26 changes: 1 addition & 25 deletions app/electron/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async function createWindow() {
nodeIntegrationInSubFrames: false,
contextIsolation: true,
enableRemoteModule: false,
additionalArguments: [`storePath:${app.getPath("userData")}`],
additionalArguments: [`--storePath=${store.sanitizePath(app.getPath("userData"))}`],
preload: path.join(__dirname, "preload.js"),
/* eng-disable PRELOAD_JS_CHECK */
disableBlinkFeatures: "Auxclick"
Expand Down Expand Up @@ -291,28 +291,4 @@ app.on("web-contents-created", (event, contents) => {
action: "allow"
};
});
});

// Filter loading any module via remote;
// you shouldn't be using remote at all, though
// https://electronjs.org/docs/tutorial/security#16-filter-the-remote-module
app.on("remote-require", (event, webContents, moduleName) => {
event.preventDefault();
});

// built-ins are modules such as "app"
app.on("remote-get-builtin", (event, webContents, moduleName) => {
event.preventDefault();
});

app.on("remote-get-global", (event, webContents, globalName) => {
event.preventDefault();
});

app.on("remote-get-current-window", (event, webContents) => {
event.preventDefault();
});

app.on("remote-get-current-web-contents", (event, webContents) => {
event.preventDefault();
});
Loading

0 comments on commit 0dd8e74

Please sign in to comment.