47 lines
2.2 KiB
Diff
47 lines
2.2 KiB
Diff
diff --git a/esm/main/ipc.js b/esm/main/ipc.js
|
|
index 2fdc06044866a4f4c3420bd8b4a5d2788faa3e4e..7f0250b911871aa12e379d848a6a5b5668bdb282 100644
|
|
--- a/esm/main/ipc.js
|
|
+++ b/esm/main/ipc.js
|
|
@@ -130,18 +130,6 @@ function configureProtocol(client, ipcUtil, options) {
|
|
if (app.isReady()) {
|
|
throw new Error("Sentry SDK should be initialized before the Electron app 'ready' event is fired");
|
|
}
|
|
- const scheme = {
|
|
- scheme: ipcUtil.namespace,
|
|
- privileges: { bypassCSP: true, corsEnabled: true, supportFetchAPI: true, secure: true },
|
|
- };
|
|
- protocol.registerSchemesAsPrivileged([scheme]);
|
|
- // We Proxy this function so that later user calls to registerSchemesAsPrivileged don't overwrite our custom scheme
|
|
- // eslint-disable-next-line @typescript-eslint/unbound-method
|
|
- protocol.registerSchemesAsPrivileged = new Proxy(protocol.registerSchemesAsPrivileged, {
|
|
- apply: (target, __, args) => {
|
|
- target([...args[0], scheme]);
|
|
- },
|
|
- });
|
|
const rendererStatusChanged = createRendererEventLoopBlockStatusHandler(client);
|
|
app
|
|
.whenReady()
|
|
diff --git a/main/ipc.js b/main/ipc.js
|
|
index 3cdf12e818890effadc0d5188fe104549c846b97..597ea1aabc2314e306864c562d9609541fc3edfe 100644
|
|
--- a/main/ipc.js
|
|
+++ b/main/ipc.js
|
|
@@ -130,18 +130,6 @@ function configureProtocol(client, ipcUtil, options) {
|
|
if (electron.app.isReady()) {
|
|
throw new Error("Sentry SDK should be initialized before the Electron app 'ready' event is fired");
|
|
}
|
|
- const scheme = {
|
|
- scheme: ipcUtil.namespace,
|
|
- privileges: { bypassCSP: true, corsEnabled: true, supportFetchAPI: true, secure: true },
|
|
- };
|
|
- electron.protocol.registerSchemesAsPrivileged([scheme]);
|
|
- // We Proxy this function so that later user calls to registerSchemesAsPrivileged don't overwrite our custom scheme
|
|
- // eslint-disable-next-line @typescript-eslint/unbound-method
|
|
- electron.protocol.registerSchemesAsPrivileged = new Proxy(electron.protocol.registerSchemesAsPrivileged, {
|
|
- apply: (target, __, args) => {
|
|
- target([...args[0], scheme]);
|
|
- },
|
|
- });
|
|
const rendererStatusChanged = rendererAnr.createRendererEventLoopBlockStatusHandler(client);
|
|
electron.app
|
|
.whenReady()
|