diff --git a/system-apps/web-browser-app/webClient/src/app/browser/services/proxy.service.ts b/system-apps/web-browser-app/webClient/src/app/browser/services/proxy.service.ts index b74bffba2..c5adbf097 100644 --- a/system-apps/web-browser-app/webClient/src/app/browser/services/proxy.service.ts +++ b/system-apps/web-browser-app/webClient/src/app/browser/services/proxy.service.ts @@ -24,7 +24,7 @@ export interface ProxyServerResult { export class ProxyService { readonly proxyServiceURL: string; private enabled = false; - proxyState = new BehaviorSubject(this.enabled); + proxyState: BehaviorSubject; currentProxyPort: number | undefined; constructor( @@ -39,6 +39,7 @@ export class ProxyService { if (isLaunchMetadata(launchMetadata) && launchMetadata.data.enableProxy) { this.enabled = true; } + this.proxyState = new BehaviorSubject(this.enabled); } private create(urlString: string): Observable {