[Workspace Loader] Add missing async keyword (#15154)

Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
7.20.x
Mykola Morhun 2019-11-11 10:01:10 +02:00 committed by GitHub
parent 11bbcf0c10
commit 3e8585c220
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ export class WorkspaceLoader {
}, 100);
}
setAuthorizationHeader(xhr: XMLHttpRequest): Promise<XMLHttpRequest> {
async setAuthorizationHeader(xhr: XMLHttpRequest): Promise<XMLHttpRequest> {
return new Promise((resolve, reject) => {
if (this.keycloak && this.keycloak.token) {
this.keycloak.updateToken(5).success(() => {