Skip to content

Commit 7446b40

Browse files
committed
feat: open DeepWiki button link in a new tab with security attributes
1 parent 10f9d15 commit 7446b40

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/scripts/content.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ function addDeepWikiButton(): void {
3232
const button = document.createElement('a');
3333
button.className = 'btn-sm btn BtnGroup-item deepwiki-button';
3434
button.href = `https://deepwiki.com/${owner}/${repo}`;
35+
button.target = '_blank';
36+
button.rel = 'noopener noreferrer';
3537
button.setAttribute('data-view-component', 'true');
3638

3739
// Add icon

0 commit comments

Comments
 (0)