Skip to content

Commit ea89876

Browse files
fix SVG mimetype name (#10181) (#10185)
1 parent 933101a commit ea89876

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

news/2 Fixes/10168.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix svg mimetype so it shows up correctly in richest mimetype order.

src/datascience-ui/interactive-common/transforms.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const mimeTypeToImport: TransformData[] = [
6565
const module = await import(/* webpackChunkName: "plotly" */ '@nteract/transform-plotly');
6666
return module.PlotlyTransform;
6767
}),
68-
new TransformData('image/svg', async () => {
68+
new TransformData('image/svg+xml', async () => {
6969
const module = await import(/* webpackChunkName: "nteract_transforms" */ '@nteract/transforms');
7070
return module.SVGTransform;
7171
}),

0 commit comments

Comments
 (0)