mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-30 09:48:53 +00:00
.
This commit is contained in:
parent
7049e05c91
commit
7aae84b2be
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user