remove priviledged schemes (#3666)
updates Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
17
src/main.ts
17
src/main.ts
@ -2,7 +2,7 @@
|
||||
// template that ElectronJS provides.
|
||||
|
||||
import dotenv from 'dotenv'
|
||||
import { app, BrowserWindow, protocol, ipcMain, dialog, shell } from 'electron'
|
||||
import { app, BrowserWindow, ipcMain, dialog, shell } from 'electron'
|
||||
import path from 'path'
|
||||
import { Issuer } from 'openid-client'
|
||||
import { Bonjour, Service } from 'bonjour-service'
|
||||
@ -42,21 +42,6 @@ if (process.defaultApp) {
|
||||
app.setAsDefaultProtocolClient(ZOO_STUDIO_PROTOCOL)
|
||||
}
|
||||
|
||||
// Register custom schemes with privileges.
|
||||
protocol.registerSchemesAsPrivileged([
|
||||
{
|
||||
scheme: ZOO_STUDIO_PROTOCOL,
|
||||
privileges: {
|
||||
standard: true,
|
||||
secure: true,
|
||||
supportFetchAPI: true,
|
||||
corsEnabled: true,
|
||||
allowServiceWorkers: true,
|
||||
codeCache: true,
|
||||
},
|
||||
},
|
||||
])
|
||||
|
||||
// Global app listeners
|
||||
// Must be done before ready event.
|
||||
registerStartupListeners()
|
||||
|
Reference in New Issue
Block a user