Fix issue with opening of terminal

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen committed 2022-01-07 19:29:24 +02:00
1 parent d89609415b
commit 4441d714dd
4 files changed
+14 -13

No files matched your search

@@ -29,6 +29,7 @@ const shellRequestAuthenticatorInjectable = getInjectable({
return authenticator;
},
lifecycle: lifecycleEnum.singleton,
});
@@ -48,7 +48,7 @@ export class ShellRequestAuthenticator {
* @param token The value that is being presented as a one time authentication token
* @returns `true` if `token` was valid, false otherwise
*/
authenticate(clusterId: ClusterId, tabId: string, token: string): boolean {
authenticate = (clusterId: ClusterId, tabId: string, token: string): boolean => {
const clusterTokens = this.tokens.get(clusterId);
if (!clusterTokens) {
@@ -66,5 +66,5 @@ export class ShellRequestAuthenticator {
}
return false;
}
};
}