diff --git a/src/Ombi/ClientApp/app/landingpage/landingpage.component.ts b/src/Ombi/ClientApp/app/landingpage/landingpage.component.ts index 653f18fd6..514b1754e 100644 --- a/src/Ombi/ClientApp/app/landingpage/landingpage.component.ts +++ b/src/Ombi/ClientApp/app/landingpage/landingpage.component.ts @@ -9,7 +9,6 @@ import { SettingsService } from "../services"; import { DomSanitizer } from "@angular/platform-browser"; import { ImageService } from "../services"; -import { setTimeout } from "core-js/library/web/timers"; import { fadeInOutAnimation } from "../animations/fadeinout"; @Component({ @@ -55,16 +54,12 @@ export class LandingPageComponent implements OnDestroy, OnInit { } public cycleBackground() { - setTimeout(() => { this.images.getRandomBackground().subscribe(x => { this.background = ""; }); - }, 10000); - setTimeout(() => { this.images.getRandomBackground().subscribe(x => { this.background = this.sanitizer .bypassSecurityTrustStyle("linear-gradient(-10deg, transparent 20%, rgba(0,0,0,0.7) 20.0%, rgba(0,0,0,0.7) 80.0%, transparent 80%), url(" + x.url + ")"); }); - }, 10000); } } diff --git a/src/Ombi/ClientApp/app/login/login.component.ts b/src/Ombi/ClientApp/app/login/login.component.ts index 4974779b3..661850e86 100644 --- a/src/Ombi/ClientApp/app/login/login.component.ts +++ b/src/Ombi/ClientApp/app/login/login.component.ts @@ -116,17 +116,13 @@ export class LoginComponent implements OnDestroy, OnInit { } private cycleBackground() { - setTimeout(() => { this.images.getRandomBackground().subscribe(x => { this.background = ""; }); - }, 10000); - setTimeout(() => { this.images.getRandomBackground().subscribe(x => { this.background = this.sanitizer .bypassSecurityTrustStyle("linear-gradient(-10deg, transparent 20%, rgba(0,0,0,0.7) 20.0%, rgba(0,0,0,0.7) 80.0%, transparent 80%), url(" + x.url + ")"); }); - }, 10000); } }