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