From c3a543c20fcf10366e66b5aa57a511b668839787 Mon Sep 17 00:00:00 2001 From: jimthev Date: Wed, 26 Feb 2020 10:44:13 -0700 Subject: [PATCH] Add svg file support This allows a svg file to be displayed inside an img tag. For example: --- src/WebWindow.Blazor/ComponentsDesktop.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/WebWindow.Blazor/ComponentsDesktop.cs b/src/WebWindow.Blazor/ComponentsDesktop.cs index 08402c7..f187236 100644 --- a/src/WebWindow.Blazor/ComponentsDesktop.cs +++ b/src/WebWindow.Blazor/ComponentsDesktop.cs @@ -91,6 +91,7 @@ private static string GetContentType(string url) case ".css": return "text/css"; case ".js": return "text/javascript"; case ".wasm": return "application/wasm"; + case ".svg": return "image/svg+xml"; } return "application/octet-stream"; }