mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-03 10:29:22 +00:00
12 lines
434 B
C#
12 lines
434 B
C#
using ABI_RC.Core.UI;
|
|
using System.Reflection;
|
|
|
|
namespace ml_asl
|
|
{
|
|
static class Utils
|
|
{
|
|
static readonly FieldInfo ms_view = typeof(CohtmlControlledViewWrapper).GetField("_view", BindingFlags.NonPublic | BindingFlags.Instance);
|
|
|
|
static public void ExecuteScript(this CohtmlControlledViewWrapper p_instance, string p_script) => ((cohtml.Net.View)ms_view.GetValue(p_instance)).ExecuteScript(p_script);
|
|
}
|
|
}
|