From 9fb8354878e144d01446a923e0ad5bd72b84b096 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Sat, 6 Mar 2021 16:01:26 +0100 Subject: [PATCH] Remove explicitly setting contextIsolation to true contextIsolation is now true by default in electron 12.x --- frontend/ts/index.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/frontend/ts/index.ts b/frontend/ts/index.ts index a339c33..efea5cd 100644 --- a/frontend/ts/index.ts +++ b/frontend/ts/index.ts @@ -535,10 +535,6 @@ function loadService(serviceId: number, service: FrontService) { view.setAttribute('autosize', 'true'); if (specialPages) view.setAttribute('src', specialPages.empty); - // Enable context isolation. This is currently not used as there is no preload script; however it could prevent - // eventual future human mistakes. - view.setAttribute('webpreferences', 'contextIsolation=yes'); - // Error handling view.addEventListener('did-fail-load', (e: DidFailLoadEvent) => { if (e.errorCode <= -100 && e.errorCode > -200) {