mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Removed redundant timers
This commit is contained in:
parent
1a352b2da0
commit
e221c02299
2 changed files with 0 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue