diff options
Diffstat (limited to 'src/models/Service.ts')
-rw-r--r-- | src/models/Service.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/models/Service.ts b/src/models/Service.ts index 35d573cab..92b8ee64c 100644 --- a/src/models/Service.ts +++ b/src/models/Service.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { autorun, computed, observable } from 'mobx'; | 1 | import { autorun, computed, makeObservable, observable } from 'mobx'; |
2 | import { ipcRenderer } from 'electron'; | 2 | import { ipcRenderer } from 'electron'; |
3 | import { webContents } from '@electron/remote'; | 3 | import { webContents } from '@electron/remote'; |
4 | import normalizeUrl from 'normalize-url'; | 4 | import normalizeUrl from 'normalize-url'; |
@@ -132,6 +132,8 @@ export default class Service { | |||
132 | throw new Error('Service recipe not valid'); | 132 | throw new Error('Service recipe not valid'); |
133 | } | 133 | } |
134 | 134 | ||
135 | makeObservable(this); | ||
136 | |||
135 | this.recipe = recipe; | 137 | this.recipe = recipe; |
136 | 138 | ||
137 | this.userAgentModel = new UserAgent(recipe.overrideUserAgent); | 139 | this.userAgentModel = new UserAgent(recipe.overrideUserAgent); |