This commit is contained in:
Koen Kanters 2019-03-12 21:58:45 +01:00
parent 9f31cd86a3
commit 79d11e295b

View File

@ -70,7 +70,17 @@ const defaults = {
let _settings; let _settings;
const getSettings = () => _settings||(_settings = read()); function getSettings() {
if (!_settings) {
_settings = read();
}
if (_settings.hasOwnProperty('advanced') && !_settings.advanced) {
delete _settings.advanced;
}
return _settings;
}
function writeRead() { function writeRead() {
write(); write();