mirror of
https://github.com/Stone-Red-Code/Markdowser.git
synced 2026-09-04 09:06:15 +02:00
Don't try to handle svg images
This commit is contained in:
@@ -11,6 +11,11 @@ internal class CommonImageProcessor : IContentProcessor
|
||||
{
|
||||
public bool CanProcess(HttpContentHeaders httpContentHeaders)
|
||||
{
|
||||
if (httpContentHeaders.ContentType?.MediaType == "image/svg+xml")
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return httpContentHeaders.ContentType?.MediaType?.StartsWith("image/") == true;
|
||||
}
|
||||
|
||||
|
||||
@@ -185,7 +185,7 @@ public partial class MainWindowViewModel : ViewModelBase
|
||||
|
||||
GlobalState.ContentReload += (sender, _) =>
|
||||
{
|
||||
// Updatre icon when dark mode changes
|
||||
// Update icon when dark mode changes
|
||||
this.RaisePropertyChanged(nameof(Icon));
|
||||
this.RaisePropertyChanged(nameof(Content));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user