File tree Expand file tree Collapse file tree 3 files changed +12
-14
lines changed
Expand file tree Collapse file tree 3 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 11/*
22Copyright 2016 Aviral Dasgupta
33Copyright 2016 OpenMarket Ltd
4- Copyright 2018 New Vector Ltd
4+ Copyright 2018, 2019 New Vector Ltd
55Copyright 2017, 2019 Michael Telatynski <7t3chguy@gmail.com>
66
77Licensed under the Apache License, Version 2.0 (the "License");
@@ -211,7 +211,14 @@ const launcher = new AutoLaunch({
211211// work.
212212// Also mark it as secure (ie. accessing resources from this
213213// protocol and HTTPS won't trigger mixed content warnings).
214- protocol . registerStandardSchemes ( [ 'vector' ] , { secure : true } ) ;
214+ protocol . registerSchemesAsPrivileged ( [ {
215+ scheme : 'vector' ,
216+ privileges : {
217+ standard : true ,
218+ secure : true ,
219+ supportFetchAPI : true ,
220+ } ,
221+ } ] ) ;
215222
216223app . on ( 'ready' , ( ) => {
217224 if ( argv [ 'devtools' ] ) {
Original file line number Diff line number Diff line change 11/*
2- Copyright 2018 New Vector Ltd
2+ Copyright 2018, 2019 New Vector Ltd
33
44Licensed under the Apache License, Version 2.0 (the "License");
55you may not use this file except in compliance with the License.
@@ -14,16 +14,7 @@ See the License for the specific language governing permissions and
1414limitations under the License.
1515*/
1616
17- const { ipcRenderer, webFrame } = require ( 'electron' ) ;
17+ const { ipcRenderer } = require ( 'electron' ) ;
1818
1919// expose ipcRenderer to the renderer process
2020window . ipcRenderer = ipcRenderer ;
21-
22- // Allow the fetch API to load resources from this
23- // protocol: this is necessary to load olm.wasm.
24- // (Also mark it a secure although we've already
25- // done this in the main process).
26- webFrame . registerURLSchemeAsPrivileged ( 'vector' , {
27- secure : true ,
28- supportFetchAPI : true ,
29- } ) ;
Original file line number Diff line number Diff line change 154154 },
155155 "build" : {
156156 "appId" : " im.riot.app" ,
157- "electronVersion" : " 4.2.6 " ,
157+ "electronVersion" : " 5.0.7 " ,
158158 "files" : [
159159 " node_modules/**" ,
160160 " src/**"
You can’t perform that action at this time.
0 commit comments