Aw4751 eslint fixes
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
2023-03-06 14:04:14 +01:00
parent 945c641503
commit 6555e68145
78 changed files with 655 additions and 655 deletions

View File

@@ -21,8 +21,8 @@ export class AccessTokenInterceptor implements HttpInterceptor {
}
hasAudience(url: string): boolean {
let u = new URL(url,this.base);
for (let audience of this.audience) {
const u = new URL(url,this.base);
for (const audience of this.audience) {
if (u.href.startsWith(audience)) return true;
}
return false;

View File

@@ -22,7 +22,7 @@ export class AppConfig {
}
public load(): Promise<any> {
var url = this.location.prepareExternalUrl('/configuration.json');
const url = this.location.prepareExternalUrl('/configuration.json');
return this.httpClient.get(url)
.toPromise()
.then(data => {
@@ -30,5 +30,5 @@ export class AppConfig {
//return data;
})
.catch(error => this.config = null);
};
}
}

View File

@@ -7,7 +7,7 @@ export interface IAuthconfigFactory {
export class AuthConfigFactory implements IAuthconfigFactory {
getAuthConfig(appConfig: AppConfig): AuthConfig {
let authConfig: AuthConfig = new AuthConfig();
const authConfig: AuthConfig = new AuthConfig();
authConfig.issuer = appConfig.getConfig("issuer");
authConfig.redirectUri = window.location.origin + "/cb";
authConfig.silentRefreshRedirectUri = window.location.origin + "/silent-refresh.html";

View File

@@ -18,7 +18,7 @@ export class SecureOAuthStorage extends OAuthStorage {
return window.sessionStorage.getItem(key);
}
};
}
removeItem(key: string): void {
if(this.secureKey(key)) {
delete this.storage[key];