Skip to content

Commit 3855eca

Browse files
committed
Disable sandboxing for now.
Sandboxing will default to enabled in Electron ≥ 20, but we don’t support it yet. Signed-off-by: Anders Kaseorg <[email protected]>
1 parent a57cbb4 commit 3855eca

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/main/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ function createMainWindow(): BrowserWindow {
7373
minHeight: 400,
7474
webPreferences: {
7575
preload: require.resolve("../renderer/js/main"),
76+
sandbox: false,
7677
webviewTag: true,
7778
},
7879
show: false,

app/renderer/js/components/webview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default class WebView {
4242
src="${props.url}"
4343
${props.preload === undefined
4444
? html``
45-
: html`preload="${props.preload}"`}
45+
: html`preload="${props.preload}" webpreferences="sandbox=no"`}
4646
partition="persist:webviewsession"
4747
allowpopups
4848
>

0 commit comments

Comments
 (0)