Skip to content

Commit 0c92729

Browse files
authored
Update WebViewManager.cs captureSnapshot - remark
1 parent 9fac232 commit 0c92729

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/WebViewManager.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,8 @@ public string ExportPageData(int format, string filePath)
11291129
}
11301130
else if (format == 1) // MHTML Snapshot
11311131
{
1132-
var task = _webView.CoreWebView2.CallDevToolsProtocolMethodAsync("Page.captureSnapshot", "{}");
1132+
/// parameters description can be found here: https://github.com/ChromeDevTools/devtools-protocol/blob/master/json/browser_protocol.json
1133+
var task = _webView.CoreWebView2.CallDevToolsProtocolMethodAsync("Page.captureSnapshot", "{}");
11331134
string json = WaitAndGetResult(task);
11341135
if (!string.IsNullOrEmpty(json))
11351136
{
@@ -1601,4 +1602,5 @@ private string CleanJsString(string input)
16011602
}
16021603
#endregion
16031604
}
1604-
}
1605+
1606+
}

0 commit comments

Comments
 (0)