Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rbrundritt committed Aug 8, 2024
1 parent 82130b7 commit b9c138d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion HybridWebView/PathUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public static bool TryGetMimeType(string? mimeTypeOrFileExtension, out string? m
"png" => "image/png",
"jpg" or "jpeg" or "jfif" or "pjpeg" or "pjp" => "image/jpeg",
"gif" => "image/gif",
"webp" => "image/wemp",
"webp" => "image/webp",
"svg" or "svg+xml" => "image/svg+xml",
"ico" or "x-icon" => "image/x-icon",
"bmp" => "image/bmp",
Expand Down
4 changes: 2 additions & 2 deletions HybridWebView/Platforms/Windows/HybridWebView.Windows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ private async void CoreWebView2_WebResourceRequested(CoreWebView2 sender, CoreWe
{
// Get a deferral object so that WebView2 knows there's some async stuff going on. We call Complete() at the end of this method.
using var deferral = eventArgs.GetDeferral();

var requestUri = QueryStringHelper.RemovePossibleQueryString(eventArgs.Request.Uri);

if (new Uri(requestUri) is Uri uri && AppOriginUri.IsBaseOf(uri))
{
PathUtils.GetRelativePathAndContentType(HybridWebView.AppOriginUri, uri, eventArgs.Request.Uri, MainFile, out string? relativePath, out string contentType, out string fullUrl);
Expand Down

0 comments on commit b9c138d

Please sign in to comment.