commit | 95e691a72ec017491dcda50a1c5c808b0e6f74ec | [log] [tgz] |
---|---|---|
author | Lakshya Thakur <lapstjup@gmail.com> | Thu Jul 23 18:44:51 2020 +0530 |
committer | Lakshya Thakur <lapstjup@gmail.com> | Thu Jul 23 18:44:51 2020 +0530 |
tree | 65063c9197a45f3193a6dae3e32b7a931e2c371b | |
parent | c229e42082ebcf1f6f3e918c4ef54dd9f298ce50 [diff] |
Fix for secure boolean inside matchSecure method of UrlFnService Change-Id: I6e7053a62f5c0d6681e4e7c8eb995c6e8aae0c99
diff --git a/web/gui2-fw-lib/lib/remote/urlfn.service.ts b/web/gui2-fw-lib/lib/remote/urlfn.service.ts index a7576c0..0aa14af 100644 --- a/web/gui2-fw-lib/lib/remote/urlfn.service.ts +++ b/web/gui2-fw-lib/lib/remote/urlfn.service.ts
@@ -36,7 +36,7 @@ matchSecure(protocol: string): string { const p: string = this.w.location.protocol; - const secure: boolean = (p === 'https' || p === 'wss'); + const secure: boolean = (p.includes('https') || p.includes('wss')); return secure ? protocol + 's' : protocol; }