This commit is contained in:
Rajnikant 2022-05-23 12:44:23 +05:30
parent 7049e05c91
commit 7aae84b2be

View File

@ -9,12 +9,12 @@ import { environment } from 'environments/environment';
name: 'authImage' name: 'authImage'
}) })
export class AuthImageFilter implements PipeTransform { export class AuthImageFilter implements PipeTransform {
constructor( constructor(
private httpServer: HttpServer, private httpServer: HttpServer,
private domSanitizer: DomSanitizer private domSanitizer: DomSanitizer
) {} ) { }
async transform(src: string, server: Server) { async transform(src: string, server: Server) {
let url = src.split(`${environment.current_version}`)[1]; let url = src.split(`${environment.current_version}`)[1];
const imageBlob: Blob = await this.httpServer.getBlob(server, url).toPromise(); const imageBlob: Blob = await this.httpServer.getBlob(server, url).toPromise();