mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-24 09:13:50 +02:00
fix(.NET): resolve cefsharp not loading uris with special characters
Before this change, the browser would fail to navigate to the local index.html page if the path leading to the file contained any special characters. This resulted in the browser loading into a file view. This fix adds a custom URI scheme that retains the same base directory that was in use previously and sets the default file to index.html. This resolves the issue with cefsharp not loading uris with special characters.
This commit is contained in:
@@ -39,9 +39,7 @@ namespace VRCX
|
||||
{
|
||||
}
|
||||
|
||||
Browser = new ChromiumWebBrowser(
|
||||
Path.Combine(Program.BaseDirectory, "html/index.html")
|
||||
)
|
||||
Browser = new ChromiumWebBrowser("localnjs://vrcx/")
|
||||
{
|
||||
DragHandler = new NoopDragHandler(),
|
||||
MenuHandler = new CustomMenuHandler(),
|
||||
|
||||
Reference in New Issue
Block a user