Split configuration into low and high traffic files
Also, we're now handling config ourselves instead of using electron-config and config dependencies.
This commit is contained in:
parent
f59ec92fef
commit
998c35dcb3
9 changed files with 112 additions and 103 deletions
12
app/ephemeral_config.js
Normal file
12
app/ephemeral_config.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
const path = require('path');
|
||||
|
||||
const { app } = require('electron');
|
||||
|
||||
const { start } = require('./base_config');
|
||||
|
||||
const userDataPath = app.getPath('userData');
|
||||
const targetPath = path.join(userDataPath, 'ephemeral.json');
|
||||
|
||||
const ephemeralConfig = start('ephemeral', targetPath);
|
||||
|
||||
module.exports = ephemeralConfig;
|
Loading…
Add table
Add a link
Reference in a new issue