diff options
author | 2017-12-13 11:18:13 +0100 | |
---|---|---|
committer | 2017-12-13 11:19:04 +0100 | |
commit | fcbf398c9a5473cd20f6560c7012bb4dc43f90de (patch) | |
tree | 40cc7b5f8fae7d291219684cf7762b02c5e42fcb /src/api | |
parent | always initialize ContextMenuBuilder but not spellchecker (diff) | |
download | ferdium-app-fcbf398c9a5473cd20f6560c7012bb4dc43f90de.tar.gz ferdium-app-fcbf398c9a5473cd20f6560c7012bb4dc43f90de.tar.zst ferdium-app-fcbf398c9a5473cd20f6560c7012bb4dc43f90de.zip |
fix mobx issue with settings model
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/server/LocalApi.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/api/server/LocalApi.js b/src/api/server/LocalApi.js index eba236f16..79ac6e12f 100644 --- a/src/api/server/LocalApi.js +++ b/src/api/server/LocalApi.js | |||
@@ -1,5 +1,3 @@ | |||
1 | import SettingsModel from '../../models/Settings'; | ||
2 | |||
3 | export default class LocalApi { | 1 | export default class LocalApi { |
4 | // App | 2 | // App |
5 | async updateAppSettings(data) { | 3 | async updateAppSettings(data) { |
@@ -15,7 +13,7 @@ export default class LocalApi { | |||
15 | async getAppSettings() { | 13 | async getAppSettings() { |
16 | const settingsString = localStorage.getItem('app'); | 14 | const settingsString = localStorage.getItem('app'); |
17 | try { | 15 | try { |
18 | const settings = new SettingsModel(JSON.parse(settingsString) || {}); | 16 | const settings = JSON.parse(settingsString) || {}; |
19 | console.debug('LocalApi::getAppSettings resolves', settings); | 17 | console.debug('LocalApi::getAppSettings resolves', settings); |
20 | 18 | ||
21 | return settings; | 19 | return settings; |