Skip to content

Commit

Permalink
fix(create-vite): add rel="noreferrer" to elements with `target="_b…
Browse files Browse the repository at this point in the history
…lank"` (#10675)
  • Loading branch information
oekazuma authored Oct 30, 2022
1 parent aacf6a4 commit e8eb67a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/create-vite/template-svelte-ts/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

<main>
<div>
<a href="https://vitejs.dev" target="_blank">
<a href="https://vitejs.dev" target="_blank" rel="noreferrer">
<img src="/vite.svg" class="logo" alt="Vite Logo" />
</a>
<a href="https://svelte.dev" target="_blank">
<a href="https://svelte.dev" target="_blank" rel="noreferrer">
<img src={svelteLogo} class="logo svelte" alt="Svelte Logo" />
</a>
</div>
Expand All @@ -19,7 +19,7 @@
</div>

<p>
Check out <a href="https://github.com/sveltejs/kit#readme" target="_blank">SvelteKit</a>, the official Svelte app framework powered by Vite!
Check out <a href="https://github.com/sveltejs/kit#readme" target="_blank" rel="noreferrer">SvelteKit</a>, the official Svelte app framework powered by Vite!
</p>

<p class="read-the-docs">
Expand Down
6 changes: 3 additions & 3 deletions packages/create-vite/template-svelte/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

<main>
<div>
<a href="https://vitejs.dev" target="_blank">
<a href="https://vitejs.dev" target="_blank" rel="noreferrer">
<img src="/vite.svg" class="logo" alt="Vite Logo" />
</a>
<a href="https://svelte.dev" target="_blank">
<a href="https://svelte.dev" target="_blank" rel="noreferrer">
<img src={svelteLogo} class="logo svelte" alt="Svelte Logo" />
</a>
</div>
Expand All @@ -19,7 +19,7 @@
</div>

<p>
Check out <a href="https://github.com/sveltejs/kit#readme" target="_blank">SvelteKit</a>, the official Svelte app framework powered by Vite!
Check out <a href="https://github.com/sveltejs/kit#readme" target="_blank" rel="noreferrer">SvelteKit</a>, the official Svelte app framework powered by Vite!
</p>

<p class="read-the-docs">
Expand Down

0 comments on commit e8eb67a

Please sign in to comment.