diff --git a/CefSharp.Example/CefSharpSchemeHandlerFactory.cs b/CefSharp.Example/CefSharpSchemeHandlerFactory.cs index 7338c9bc0..c94d11091 100644 --- a/CefSharp.Example/CefSharpSchemeHandlerFactory.cs +++ b/CefSharp.Example/CefSharpSchemeHandlerFactory.cs @@ -80,6 +80,15 @@ namespace CefSharp.Example return ResourceHandler.FromFilePath("CefSharp.Core.xml", mimeType, autoDisposeStream: true); } + if (fileName.EndsWith("Logo.png", StringComparison.OrdinalIgnoreCase)) + { + //Convenient helper method to lookup the mimeType + var mimeType = ResourceHandler.GetMimeType(".png"); + //Load a resource handler for Logo.png + //mimeType is optional and will default to text/html + return ResourceHandler.FromFilePath("..\\..\\..\\..\\CefSharp.WinForms.Example\\Resources\\chromium-256.png", mimeType, autoDisposeStream: true); + } + if (uri.Host == "cefsharp.com" && schemeName == "https" && (string.Equals(fileName, "/PostDataTest.html", StringComparison.OrdinalIgnoreCase) || string.Equals(fileName, "/PostDataAjaxTest.html", StringComparison.OrdinalIgnoreCase))) {