Enables sandbox on about window

This commit is contained in:
Josh Perez 2023-03-14 11:55:31 -04:00 committed by GitHub
parent 58691b2f5e
commit 4591b56f7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 262 additions and 93 deletions

View file

@ -1253,7 +1253,7 @@ async function showAbout() {
nodeIntegrationInWorker: false,
sandbox: false,
contextIsolation: true,
preload: join(__dirname, '../ts/windows/about/preload.js'),
preload: join(__dirname, '../about.preload.bundle.js'),
nativeWindowOpen: true,
},
};
@ -2357,6 +2357,11 @@ ipc.on('locale-data', event => {
event.returnValue = getResolvedMessagesLocale().messages;
});
ipc.on('getHasCustomTitleBar', event => {
// eslint-disable-next-line no-param-reassign
event.returnValue = OS.hasCustomTitleBar();
});
ipc.on('user-config-key', event => {
// eslint-disable-next-line no-param-reassign
event.returnValue = userConfig.get('key');