process.env['ELECTRON_DISABLE_SECURITY_WARNINGS'] = '1';
app.enableSandbox();
app.commandLine.appendSwitch('disable-features', 'OutOfBlinkCors');
app.allowRendererProcessReuse = true;
protocol.registerSchemesAsPrivileged([
{
scheme: 'dat',
privileges: { standard: true, secure: true, allowServiceWorkers: true, supportFetchAPI: true, corsEnabled: true },
},
{
scheme: 'hyper',
privileges: {
standard: true,
secure: true,
allowServiceWorkers: true,
supportFetchAPI: true,
corsEnabled: true,
stream: true,
},
},
{
scheme: 'beaker',
privileges: { standard: true, secure: true, allowServiceWorkers: true, supportFetchAPI: true, corsEnabled: true },
},
]);