mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
Add support for svg images to imageview command (#453)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user