clean code
This commit is contained in:
parent
8d3d925a6d
commit
f129f068e0
4 changed files with 1 additions and 6 deletions
|
|
@ -27,8 +27,7 @@ export class RegisterComponent implements OnInit {
|
||||||
constructor(
|
constructor(
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
public authService: AuthService,
|
public authService: AuthService,
|
||||||
public errorService: ErrorService,
|
public errorService: ErrorService
|
||||||
private router: Router
|
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@ import { Component, OnInit, ViewChild } from '@angular/core';
|
||||||
import { HeaderComponent } from '../../../shared/components/header/header.component';
|
import { HeaderComponent } from '../../../shared/components/header/header.component';
|
||||||
import { HeroBannerComponent } from './hero-banner/hero-banner.component';
|
import { HeroBannerComponent } from './hero-banner/hero-banner.component';
|
||||||
import { CategoriesComponent } from './categories/categories.component';
|
import { CategoriesComponent } from './categories/categories.component';
|
||||||
import { AuthService } from '../../../services/auth.service';
|
|
||||||
import { MovieService } from '../../../services/movie.service';
|
import { MovieService } from '../../../services/movie.service';
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { VideoPlayerComponent } from './video-player/video-player.component';
|
import { VideoPlayerComponent } from './video-player/video-player.component';
|
||||||
|
|
@ -41,7 +40,6 @@ export class BrowseComponent implements OnInit {
|
||||||
};
|
};
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private authService: AuthService,
|
|
||||||
private movieService: MovieService,
|
private movieService: MovieService,
|
||||||
public userService: UserService
|
public userService: UserService
|
||||||
) {}
|
) {}
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,6 @@ export class HeroBannerComponent implements OnChanges {
|
||||||
'1080': false,
|
'1080': false,
|
||||||
};
|
};
|
||||||
constructor(
|
constructor(
|
||||||
private el: ElementRef,
|
|
||||||
private movieService: MovieService,
|
private movieService: MovieService,
|
||||||
public userService: UserService
|
public userService: UserService
|
||||||
) {}
|
) {}
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,6 @@ export class VideoPlayerComponent implements OnInit, OnDestroy {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Method to switch resolution
|
|
||||||
public switchResolution(resolution: '360p' | '720p' | '1080p') {
|
public switchResolution(resolution: '360p' | '720p' | '1080p') {
|
||||||
if (this.resolutionUrls[resolution]) {
|
if (this.resolutionUrls[resolution]) {
|
||||||
if (this.hls) {
|
if (this.hls) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue