Remove explicitly setting contextIsolation to true

contextIsolation is now true by default in electron 12.x
This commit is contained in:
Alice Gaudon 2021-03-06 16:01:26 +01:00
parent 29f9b22d21
commit 9fb8354878

View File

@ -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) {