diff options
author | 2022-07-07 09:31:50 +0200 | |
---|---|---|
committer | 2022-07-07 09:31:50 +0200 | |
commit | 71c52373f81cace664047edd19d9d289f45a4dff (patch) | |
tree | 69b3f1d45a8b3f1ceab9497ea3c96e9dc18e3166 /src/models/Service.ts | |
parent | 6.0.0-nightly.91 [skip ci] (diff) | |
download | ferdium-app-71c5237.tar.gz ferdium-app-71c5237.tar.zst ferdium-app-71c5237.zip |
chore: Mobx & React-Router upgrade (#406)
Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
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); |