MicrosoftDocs / edge-developer

Developer documentation for Edge.
https://learn.microsoft.com/microsoft-edge/developer/
Creative Commons Attribution 4.0 International
380 stars 505 forks source link

Missing semi colon in document #3008

Closed jbp199 closed 8 months ago

jbp199 commented 8 months ago

Example shown here missing a semicolon on second to last closure:

webView.CoreWebView2.ContextMenuRequested += delegate (object sender, CoreWebView2ContextMenuRequestedEventArgs args) { // add new item to end of collection CoreWebView2ContextMenuItem newItem = webView.CoreWebView2.Environment.CreateContextMenuItem( "Display Page Uri", null, CoreWebView2ContextMenuItemKind.Command); newItem.CustomItemSelected += delegate (object send, Object ex) { string pageUri = args.ContextMenuTarget.PageUri; System.Threading.SynchronizationContext.Current.Post((_) => { MessageBox.Show(pageUri, "Page Uri", MessageBoxButton.OK); }, null); }; <<---- semi colon missing menuList.Insert(menuList.Count, newItem); };


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

AB#48412524

captainbrosset commented 8 months ago

Thanks for filing this issue. I've opened a PR to fix it.