-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10392 from vector-im/jryans/electron-5
Upgrade to Electron 5
- Loading branch information
Showing
3 changed files
with
12 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
Copyright 2016 Aviral Dasgupta | ||
Copyright 2016 OpenMarket Ltd | ||
Copyright 2018 New Vector Ltd | ||
Copyright 2018, 2019 New Vector Ltd | ||
Copyright 2017, 2019 Michael Telatynski <[email protected]> | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
|
@@ -211,7 +211,14 @@ 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.registerSchemesAsPrivileged([{ | ||
scheme: 'vector', | ||
privileges: { | ||
standard: true, | ||
secure: true, | ||
supportFetchAPI: true, | ||
}, | ||
}]); | ||
|
||
app.on('ready', () => { | ||
if (argv['devtools']) { | ||
|
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
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