Skip to content

Commit

Permalink
Set hostname to localhost (#1524)
Browse files Browse the repository at this point in the history
Co-authored-by: ike709 <[email protected]>
  • Loading branch information
ike709 and ike709 authored Oct 26, 2023
1 parent b07cbbd commit c26e0a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenDreamClient/Interface/Controls/ControlBrowser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public override void Output(string value, string? jsFunction) {
}

public void SetFileSource(ResPath filepath, bool userData) {
_webView.Url = (userData ? "usr://_/" : "res://_/") + filepath;
_webView.Url = (userData ? "usr://127.0.0.1/" : "res://127.0.0.1/") + filepath; // hostname must be the localhost IP for TGUI to work properly
}

private void BeforeBrowseHandler(IBeforeBrowseContext context) {
Expand Down

0 comments on commit c26e0a2

Please sign in to comment.