Improve Settings handling

This commit is contained in:
djmaze 2021-03-10 11:44:48 +01:00
parent e7b1ce7509
commit 34b25eedea
39 changed files with 160 additions and 150 deletions

View file

@ -1,5 +1,5 @@
import { pString, pInt } from 'Common/Utils';
import { Settings } from 'Common/Globals';
import { Settings, SettingsGet } from 'Common/Globals';
const
ROOT = './',
@ -8,7 +8,7 @@ const
VERSION = Settings.app('version'),
VERSION_PREFIX = Settings.app('webVersionPath') || 'snappymail/v/' + VERSION + '/',
getHash = () => Settings.get('AuthAccountHash') || '0';
getHash = () => SettingsGet('AuthAccountHash') || '0';
/**
* @returns {string}