File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ but still wants to have script running or monitoring requests from network.
1111``` c#
1212async protected void OnBecomingInactive ()
1313{
14- // CanSuspendWebPage () uses app specific logic to check whether the current web contents in the WebView2 can be suspended.
14+ // CanSuspendWebView () uses app specific logic to check whether the current web contents in the WebView2 can be suspended.
1515 if (CanSuspendWebView ()) {
1616 await webView .CoreWebView2 .TrySuspendAsync ();
1717 } else {
@@ -47,7 +47,7 @@ bool ViewComponent::HandleWindowMessage(
4747
4848void ViewComponent::OnBecomingInactive()
4949{
50- // CanSuspendWebPage () checks whether the current web contents in WebView can be suspended.
50+ // CanSuspendWebView () uses app specific logic to check whether the current web contents in the WebView2 can be suspended.
5151 if (CanSuspendWebView()) {
5252 CHECK_FAILURE(m_webView->TrySuspend(nullptr));
5353 } else {
You can’t perform that action at this time.
0 commit comments