mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
Add support for svg images to imageview command (#453)
This commit is contained in:
parent
0f2f6c9cc0
commit
3f988c0e6b
@ -53,6 +53,9 @@ class SimpleImageRenderer extends React.Component<
|
||||
</div>
|
||||
);
|
||||
}
|
||||
if (dataBlob.name.endsWith(".svg")) {
|
||||
dataBlob = new Blob([dataBlob], { type: "image/svg+xml" }) as ExtBlob;
|
||||
}
|
||||
if (this.objUrl == null) {
|
||||
this.objUrl = URL.createObjectURL(dataBlob);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user