summaryrefslogtreecommitdiffstats
path: root/src/webview/recipe.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/webview/recipe.ts')
-rw-r--r--src/webview/recipe.ts9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/webview/recipe.ts b/src/webview/recipe.ts
index 887d9c367..9ce52d844 100644
--- a/src/webview/recipe.ts
+++ b/src/webview/recipe.ts
@@ -43,6 +43,7 @@ import {
43 switchDict, 43 switchDict,
44} from './spellchecker'; 44} from './spellchecker';
45 45
46import { DEFAULT_APP_SETTINGS } from '../config';
46import { ifUndefinedString } from '../jsUtils'; 47import { ifUndefinedString } from '../jsUtils';
47import { AppStore } from '../@types/stores.types'; 48import { AppStore } from '../@types/stores.types';
48import Service from '../models/Service'; 49import Service from '../models/Service';
@@ -131,13 +132,19 @@ ipcRenderer.sendToHost(
131); 132);
132 133
133class RecipeController { 134class RecipeController {
134 // @ts-ignore
135 @observable settings: { 135 @observable settings: {
136 overrideSpellcheckerLanguage: boolean; 136 overrideSpellcheckerLanguage: boolean;
137 app: AppStore; 137 app: AppStore;
138 service: Service; 138 service: Service;
139 } = { 139 } = {
140 overrideSpellcheckerLanguage: false, 140 overrideSpellcheckerLanguage: false,
141 // @ts-ignore
142 app: DEFAULT_APP_SETTINGS,
143 // @ts-ignore
144 service: {
145 isDarkModeEnabled: false,
146 spellcheckerLanguage: '',
147 },
141 }; 148 };
142 149
143 ipcEvents = { 150 ipcEvents = {