mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
24 lines
743 B
C#
24 lines
743 B
C#
using Robust.Shared.Configuration;
|
|
|
|
namespace Robust.Client.WebView;
|
|
|
|
// ReSharper disable once InconsistentNaming
|
|
/// <summary>
|
|
/// CVars for <c>Robust.Client.WebView</c>
|
|
/// </summary>
|
|
[CVarDefs]
|
|
public static class WCVars
|
|
{
|
|
/// <summary>
|
|
/// Enable the <c>res://</c> protocol inside WebView browsers, allowing access to the Robust resources.
|
|
/// </summary>
|
|
public static readonly CVarDef<bool> WebResProtocol =
|
|
CVarDef.Create("web.res_protocol", true, CVar.CLIENTONLY);
|
|
|
|
/// <summary>
|
|
/// Overrides the default CEF user-agent when set to a non-empty string.
|
|
/// </summary>
|
|
public static readonly CVarDef<string> UserAgentOverride =
|
|
CVarDef.Create("web.user_agent", "", CVar.CLIENTONLY);
|
|
}
|