diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-05-15 01:44:18 -0500 |
---|---|---|
committer | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2022-05-15 19:05:55 -0500 |
commit | 082b64b6c40fcab3ecf303f53ce83e7753894a32 (patch) | |
tree | 92626869949cc671effce89cfbcd52092243de5c /src/stores/AppStore.js | |
parent | fix: revert "Typescript conversion" (#153) (diff) | |
download | ferdium-app-082b64b6c40fcab3ecf303f53ce83e7753894a32.tar.gz ferdium-app-082b64b6c40fcab3ecf303f53ce83e7753894a32.tar.zst ferdium-app-082b64b6c40fcab3ecf303f53ce83e7753894a32.zip |
Extract utility functions for JSON parsing
Diffstat (limited to 'src/stores/AppStore.js')
-rw-r--r-- | src/stores/AppStore.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 76956fdc7..a9c92fe87 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -17,6 +17,7 @@ import { readJsonSync } from 'fs-extra'; | |||
17 | import Store from './lib/Store'; | 17 | import Store from './lib/Store'; |
18 | import Request from './lib/Request'; | 18 | import Request from './lib/Request'; |
19 | import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config'; | 19 | import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config'; |
20 | import { cleanseJSObject } from '../jsUtils'; | ||
20 | import { isMac, isWindows, electronVersion, osRelease } from '../environment'; | 21 | import { isMac, isWindows, electronVersion, osRelease } from '../environment'; |
21 | import { ferdiumVersion, userDataPath, ferdiumLocale } from '../environment-remote'; | 22 | import { ferdiumVersion, userDataPath, ferdiumLocale } from '../environment-remote'; |
22 | import { generatedTranslations } from '../i18n/translations'; | 23 | import { generatedTranslations } from '../i18n/translations'; |
@@ -265,7 +266,7 @@ export default class AppStore extends Store { | |||
265 | } | 266 | } |
266 | 267 | ||
267 | @computed get debugInfo() { | 268 | @computed get debugInfo() { |
268 | const settings = JSON.parse(JSON.stringify(this.stores.settings.app)); | 269 | const settings = cleanseJSObject(this.stores.settings.app); |
269 | settings.lockedPassword = '******'; | 270 | settings.lockedPassword = '******'; |
270 | 271 | ||
271 | return { | 272 | return { |