Skip to content

Commit 2ef483b

Browse files
authored
Merge pull request #112 from codemonkey85/dev
Refine external link handling in blog posts
2 parents 2c032ce + eab9d54 commit 2ef483b

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

AboutMe/Wasm/Pages/Blog.razor.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
4747

4848
if (!IsLoading && Posts.Count > 0)
4949
{
50-
await jsRuntime.InvokeVoidAsync("eval", "Array.from(document.querySelectorAll('a')).forEach(a => a.setAttribute('target', '_blank'))");
5150
await jsRuntime.InvokeVoidAsync("eval",
5251
"document.querySelectorAll('.content-wrapper a').forEach(a => { a.target = '_blank'; a.rel = 'noopener noreferrer'; });");
5352
}

0 commit comments

Comments
 (0)