Skip to content

Commit 86096b1

Browse files
Update specs/SetMemoryUsageLevel.md
Co-authored-by: David Risney <dave@deletethis.net>
1 parent d0f81e0 commit 86096b1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

specs/SetMemoryUsageLevel.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ but still wants to have script running or monitoring requests from network.
1212
async protected void OnBecomingInactive()
1313
{
1414
// CanSuspendWebView() uses app specific logic to check whether the current web contents in the WebView2 can be suspended.
15-
if (CanSuspendWebView()) {
15+
if (CanSuspendWebView())
16+
{
1617
await webView.CoreWebView2.TrySuspendAsync();
1718
} else {
1819
webView.CoreWebView2.MemoryUsageTargetLevel = CoreWebView2MemoryUsageTargetLevel.Low;

0 commit comments

Comments
 (0)