mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-21 05:53:06 +00:00
.
This commit is contained in:
parent
7049e05c91
commit
7aae84b2be
@ -9,12 +9,12 @@ import { environment } from 'environments/environment';
|
||||
name: 'authImage'
|
||||
})
|
||||
export class AuthImageFilter implements PipeTransform {
|
||||
|
||||
|
||||
constructor(
|
||||
private httpServer: HttpServer,
|
||||
private domSanitizer: DomSanitizer
|
||||
) {}
|
||||
|
||||
) { }
|
||||
|
||||
async transform(src: string, server: Server) {
|
||||
let url = src.split(`${environment.current_version}`)[1];
|
||||
const imageBlob: Blob = await this.httpServer.getBlob(server, url).toPromise();
|
||||
|
Loading…
Reference in New Issue
Block a user