aboutsummaryrefslogtreecommitdiffstats
path: root/src/models/Service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/models/Service.ts')
-rw-r--r--src/models/Service.ts4
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 @@
1import { autorun, computed, observable } from 'mobx'; 1import { autorun, computed, makeObservable, observable } from 'mobx';
2import { ipcRenderer } from 'electron'; 2import { ipcRenderer } from 'electron';
3import { webContents } from '@electron/remote'; 3import { webContents } from '@electron/remote';
4import normalizeUrl from 'normalize-url'; 4import 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);