mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-11 09:26:27 +00:00
Remove support for custom certificate exceptions.
Version 5.4.0 and later uses electron.net for all network requests (#993), so custom certificates can now be configured in the same system certificate store that Chrome uses. https://zulip.com/help/custom-certificates#desktop Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -11,7 +11,6 @@ if (process.type === 'renderer') {
|
||||
|
||||
const zulipDir = app.getPath('userData');
|
||||
const logDir = `${zulipDir}/Logs/`;
|
||||
const certificatesDir = `${zulipDir}/certificates/`;
|
||||
const configDir = `${zulipDir}/config/`;
|
||||
export const initSetUp = (): void => {
|
||||
// If it is the first time the app is running
|
||||
@@ -26,16 +25,11 @@ export const initSetUp = (): void => {
|
||||
fs.mkdirSync(logDir);
|
||||
}
|
||||
|
||||
if (!fs.existsSync(certificatesDir)) {
|
||||
fs.mkdirSync(certificatesDir);
|
||||
}
|
||||
|
||||
// Migrate config files from app data folder to config folder inside app
|
||||
// data folder. This will be done once when a user updates to the new version.
|
||||
if (!fs.existsSync(configDir)) {
|
||||
fs.mkdirSync(configDir);
|
||||
const domainJson = `${zulipDir}/domain.json`;
|
||||
const certificatesJson = `${zulipDir}/certificates.json`;
|
||||
const settingsJson = `${zulipDir}/settings.json`;
|
||||
const updatesJson = `${zulipDir}/updates.json`;
|
||||
const windowStateJson = `${zulipDir}/window-state.json`;
|
||||
@@ -44,10 +38,6 @@ export const initSetUp = (): void => {
|
||||
path: domainJson,
|
||||
fileName: 'domain.json'
|
||||
},
|
||||
{
|
||||
path: certificatesJson,
|
||||
fileName: 'certificates.json'
|
||||
},
|
||||
{
|
||||
path: settingsJson,
|
||||
fileName: 'settings.json'
|
||||
|
||||
Reference in New Issue
Block a user