Skip to content

Commit 4c95b66

Browse files
authored
Update SetMemoryUsageLevel.md
1 parent 5eac1c9 commit 4c95b66

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

specs/SetMemoryUsageLevel.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ but still wants to have script running or monitoring requests from network.
1111
```c#
1212
async 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

4848
void 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 {

0 commit comments

Comments
 (0)