From 0efb7c2ab7b9705a9f5f177b4dc170c1abbd97ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BF=B7=E6=B8=A1?= Date: Tue, 11 Jun 2019 11:55:38 +0800 Subject: fix bug in URL (#2495) --- js/url.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'js/url.ts') diff --git a/js/url.ts b/js/url.ts index 8701f1930..e8b1ec8f4 100644 --- a/js/url.ts +++ b/js/url.ts @@ -80,6 +80,10 @@ export class URL { /* eslint-enable */ } this._searchParams = searchParams; + + // convert to `any` that has avoided the private limit + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._searchParams as any).url = this; } get hash(): string { -- cgit v1.2.3