Be resilient to malformed ephemeral.json
This commit is contained in:
parent
41dd78c073
commit
f11dd18536
2 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue