-
-
Save dbkr/e898624be6d53590ebf494521d868fec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/electron_app/src/electron-main.js b/electron_app/src/electron-main.js | |
index 99ddfbd1..c3aa4f5d 100644 | |
--- a/electron_app/src/electron-main.js | |
+++ b/electron_app/src/electron-main.js | |
@@ -206,7 +206,10 @@ const launcher = new AutoLaunch({ | |
// work. | |
// Also mark it as secure (ie. accessing resources from this | |
// protocol and HTTPS won't trigger mixed content warnings). | |
-protocol.registerStandardSchemes(['vector'], {secure: true}); | |
+//protocol.registerStandardSchemes(['vector'], {secure: true}); | |
+protocol.registerSchemesAsPrivileged([{ | |
+ scheme: 'vector', privileges: {standard: true, secure: true, supportFetchAPI: true}, | |
+}]); | |
app.on('ready', () => { | |
if (argv['devtools']) { | |
diff --git a/electron_app/src/preload.js b/electron_app/src/preload.js | |
index 3a4f7c9a..f63e19d4 100644 | |
--- a/electron_app/src/preload.js | |
+++ b/electron_app/src/preload.js | |
@@ -23,7 +23,7 @@ window.ipcRenderer = ipcRenderer; | |
// protocol: this is necessary to load olm.wasm. | |
// (Also mark it a secure although we've already | |
// done this in the main process). | |
-webFrame.registerURLSchemeAsPrivileged('vector', { | |
+/*webFrame.registerURLSchemeAsPrivileged('vector', { | |
secure: true, | |
supportFetchAPI: true, | |
-}); | |
+});*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment