mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-04 04:31:29 +03:00
Reduced the max number of ghost cards to 10 for performance reasons
This commit is contained in:
@@ -59,7 +59,8 @@ export class RecentVideosComponent implements OnInit {
|
|||||||
constructor(public postsService: PostsService, private router: Router) {
|
constructor(public postsService: PostsService, private router: Router) {
|
||||||
// get cached file count
|
// get cached file count
|
||||||
if (localStorage.getItem('cached_file_count')) {
|
if (localStorage.getItem('cached_file_count')) {
|
||||||
this.cached_file_count = +localStorage.getItem('cached_file_count');
|
this.cached_file_count = +localStorage.getItem('cached_file_count') <= 10 ? +localStorage.getItem('cached_file_count') : 10;
|
||||||
|
|
||||||
this.loading_files = Array(this.cached_file_count).fill(0);
|
this.loading_files = Array(this.cached_file_count).fill(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user