We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0837d84 commit fa7dd2aCopy full SHA for fa7dd2a
specs/ExecuteScriptWithResult.md
@@ -49,14 +49,14 @@ void MatchRegWithScript(wil::com_ptr<ICoreWebView2> webView
49
, LPCWSTR reg
50
, LPCWSTR item)
51
{
52
- wil::com_ptr<ICoreWebView2_10> webview2 = webView.try_query<ICoreWebView2_10>();
53
-
54
if (!webview2)
55
56
// ExecuteScriptWithResult is not supported by this WebView.
57
return;
58
}
59
+ wil::com_ptr<ICoreWebView2_10> webview2 = webView.try_query<ICoreWebView2_10>();
+
60
auto scriptCode = GenerateScriptCode(str, reg, item);
61
webview2->ExecuteScriptWithResult(
62
scriptCode.c_str(),
0 commit comments