We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0f81e0 commit 86096b1Copy full SHA for 86096b1
1 file changed
specs/SetMemoryUsageLevel.md
@@ -12,7 +12,8 @@ but still wants to have script running or monitoring requests from network.
12
async protected void OnBecomingInactive()
13
{
14
// CanSuspendWebView() uses app specific logic to check whether the current web contents in the WebView2 can be suspended.
15
- if (CanSuspendWebView()) {
+ if (CanSuspendWebView())
16
+ {
17
await webView.CoreWebView2.TrySuspendAsync();
18
} else {
19
webView.CoreWebView2.MemoryUsageTargetLevel = CoreWebView2MemoryUsageTargetLevel.Low;
0 commit comments