public static void InjectMtJavascript(this WebView webView) { #if MONOMAC InjectMtJavascript(webView, MT_JAVASCRIPT); #else webView.EvaluateJavascript(MT_JAVASCRIPT); #endif }
public static void InjectMtJavascript(this WebView webView, string script) { #if MONOMAC var document = webView.MainFrame.DomDocument; document.EvaluateWebScript(script); #else webView.EvaluateJavascript(script); #endif }