From 3af0d33e3b775f22217982667913a166f19175e1 Mon Sep 17 00:00:00 2001 From: Jason Robinson Date: Tue, 8 Sep 2020 13:00:00 +0300 Subject: [PATCH] Make a few fields readonly As they're only set in the constructor. --- src/widgets/WidgetApi.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets/WidgetApi.ts b/src/widgets/WidgetApi.ts index 4099793500..672cbf2a56 100644 --- a/src/widgets/WidgetApi.ts +++ b/src/widgets/WidgetApi.ts @@ -81,9 +81,9 @@ export interface OpenIDCredentials { * the given promise resolves. */ export class WidgetApi extends EventEmitter { - private origin: string; + private readonly origin: string; private inFlightRequests: { [requestId: string]: (reply: FromWidgetRequest) => void } = {}; - private readyPromise: Promise; + private readonly readyPromise: Promise; private readyPromiseResolve: () => void; private openIDCredentialsCallback: () => void; public openIDCredentials: OpenIDCredentials;