diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2023-05-24 06:57:50 +0530 |
---|---|---|
committer | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2023-05-24 16:40:43 +0530 |
commit | e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b (patch) | |
tree | d684777b3fde5470c9f99304a9f022422ffb8045 /src/electron/Settings.ts | |
parent | 6.3.0-nightly.9 [skip ci] (diff) | |
download | ferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.tar.gz ferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.tar.zst ferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.zip |
Upgrade npm modules
Diffstat (limited to 'src/electron/Settings.ts')
-rw-r--r-- | src/electron/Settings.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/electron/Settings.ts b/src/electron/Settings.ts index 3e9c6ed99..7bb12338e 100644 --- a/src/electron/Settings.ts +++ b/src/electron/Settings.ts | |||
@@ -18,10 +18,10 @@ export default class Settings { | |||
18 | this.store = defaultState; | 18 | this.store = defaultState; |
19 | this.defaultState = defaultState; | 19 | this.defaultState = defaultState; |
20 | 20 | ||
21 | if (!pathExistsSync(this.settingsFile)) { | 21 | if (pathExistsSync(this.settingsFile)) { |
22 | this._writeFile(); | ||
23 | } else { | ||
24 | this._hydrate(); | 22 | this._hydrate(); |
23 | } else { | ||
24 | this._writeFile(); | ||
25 | } | 25 | } |
26 | } | 26 | } |
27 | 27 | ||