diff options
author | Stefan Malzner <stefan@adlk.io> | 2019-04-09 01:20:35 +0200 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2019-04-09 01:20:35 +0200 |
commit | 25fc276d5e3f754f915500e91229b8607febc478 (patch) | |
tree | 1875b74611d2cc7be8c6b040dae55ede89e51356 /src/features/settingsWS/state.js | |
parent | update strings (diff) | |
download | ferdium-app-25fc276d5e3f754f915500e91229b8607febc478.tar.gz ferdium-app-25fc276d5e3f754f915500e91229b8607febc478.tar.zst ferdium-app-25fc276d5e3f754f915500e91229b8607febc478.zip |
Add settings websocket
Diffstat (limited to 'src/features/settingsWS/state.js')
-rwxr-xr-x | src/features/settingsWS/state.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/features/settingsWS/state.js b/src/features/settingsWS/state.js new file mode 100755 index 000000000..7b16b2b6e --- /dev/null +++ b/src/features/settingsWS/state.js | |||
@@ -0,0 +1,13 @@ | |||
1 | import { observable } from 'mobx'; | ||
2 | |||
3 | const defaultState = { | ||
4 | isFeatureActive: false, | ||
5 | }; | ||
6 | |||
7 | export const settingsWSState = observable(defaultState); | ||
8 | |||
9 | export function resetState() { | ||
10 | Object.assign(settingsWSState, defaultState); | ||
11 | } | ||
12 | |||
13 | export default settingsWSState; | ||