mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Be resilient to malformed ephemeral.json
This commit is contained in:
@@ -7,6 +7,8 @@ const { start } = require('./base_config');
|
||||
const userDataPath = app.getPath('userData');
|
||||
const targetPath = path.join(userDataPath, 'ephemeral.json');
|
||||
|
||||
const ephemeralConfig = start('ephemeral', targetPath);
|
||||
const ephemeralConfig = start('ephemeral', targetPath, {
|
||||
allowMalformedOnStartup: true,
|
||||
});
|
||||
|
||||
module.exports = ephemeralConfig;
|
||||
|
||||
Reference in New Issue
Block a user