[AppSettings] Don't remake each export call
This commit is contained in:
parent
cbe4b5f8a9
commit
13aa07117e
1 changed files with 6 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
const Settings = require('./utils/Settings');
|
let settings;
|
||||||
const paths = require('./paths');
|
|
||||||
|
|
||||||
const settings = new Settings(paths.getUserData());
|
exports.getSettings = () => {
|
||||||
|
if (!settings) settings = new (require('./utils/Settings'))(require('./paths').getUserData());
|
||||||
exports.getSettings = () => settings;
|
return settings;
|
||||||
exports.init = () => {}; // Stub as we setup on require
|
};
|
||||||
|
exports.init = () => {};
|
Loading…
Reference in a new issue