Fix tslint errors

This commit is contained in:
Kristóf Tóth
2019-08-12 16:58:24 +02:00
parent 97b911689b
commit 0543a36f09
5 changed files with 9 additions and 10 deletions

View File

@ -131,7 +131,7 @@ export class DashboardComponent implements OnInit, OnDestroy {
// Sometimes it is needed to reload the iframe without resending the previous form data
setTimeout(() => {
this.webiframe.nativeElement.contentWindow.location = this.webiframe.nativeElement.contentWindow.location.href;
})
});
}
selectTerminalMenuItem(item: string) {
@ -165,12 +165,13 @@ export class DashboardComponent implements OnInit, OnDestroy {
changeIframeURL() {
const userGivenValue = this.urlbar.nativeElement.value.trim();
if(
userGivenValue == '/' ||
if (
userGivenValue === '/' ||
userGivenValue.startsWith('dashboard') ||
userGivenValue.startsWith('/dashboard')
)
) {
return;
}
this.webiframe.nativeElement.contentWindow.frames.location.href = this.urlbar.nativeElement.value;
}