From 1a352b2da0e8a1091af71cd7b3b2b2e082c793cc Mon Sep 17 00:00:00 2001 From: Anojh Date: Thu, 22 Mar 2018 22:36:11 -0700 Subject: [PATCH] More optimizations by reducing requests --- src/Ombi/ClientApp/app/landingpage/landingpage.component.ts | 4 ++-- src/Ombi/ClientApp/app/login/login.component.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Ombi/ClientApp/app/landingpage/landingpage.component.ts b/src/Ombi/ClientApp/app/landingpage/landingpage.component.ts index 08c667af8..653f18fd6 100644 --- a/src/Ombi/ClientApp/app/landingpage/landingpage.component.ts +++ b/src/Ombi/ClientApp/app/landingpage/landingpage.component.ts @@ -59,12 +59,12 @@ export class LandingPageComponent implements OnDestroy, OnInit { this.images.getRandomBackground().subscribe(x => { this.background = ""; }); - }, 1000); + }, 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 + ")"); }); - }, 1000); + }, 10000); } } diff --git a/src/Ombi/ClientApp/app/login/login.component.ts b/src/Ombi/ClientApp/app/login/login.component.ts index ab3e63174..4974779b3 100644 --- a/src/Ombi/ClientApp/app/login/login.component.ts +++ b/src/Ombi/ClientApp/app/login/login.component.ts @@ -120,13 +120,13 @@ export class LoginComponent implements OnDestroy, OnInit { this.images.getRandomBackground().subscribe(x => { this.background = ""; }); - }, 1000); + }, 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 + ")"); }); - }, 1000); + }, 10000); } }