Skip to content

Commit

Permalink
Fix potential null reference on release notes click
Browse files Browse the repository at this point in the history
See when using the `Developer: open as release notes` command
  • Loading branch information
mjbvz committed Jul 26, 2024
1 parent 53301ea commit e619075
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ export class ReleaseNotesManager {
});
window.addEventListener('click', event => {
const href = event.target.href ?? event.target.parentElement.href ?? event.target.parentElement.parentElement?.href;
const href = event.target.href ?? event.target.parentElement?.href ?? event.target.parentElement?.parentElement?.href;
if (href && (href.startsWith('${Schemas.codeSetting}'))) {
vscode.postMessage({ type: 'clickSetting', value: { uri: href, x: event.clientX, y: event.clientY }});
}
Expand Down

0 comments on commit e619075

Please sign in to comment.