-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix files in new tab bug #107
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
{#if $settings.newTab} | ||
<a class="link link-hover text-primary" href="{$page.url}/{data.name}" target="_blank" rel="noreferrer"> | ||
{data.name} | ||
</a> | ||
{:else} | ||
<a class="link link-hover text-primary" href="{$page.url}/{data.name}"> | ||
{data.name} | ||
</a> | ||
{/if} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of this if else you can just do
target={$settings.newTab ? "_blank" : null}
and same for rel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please run prettier format on this file
A quale bug ti riferisci? Btw esisteva già una PR sul newTab.. #104 |
@Bitrey non è la stessa di #104 ? |
Confermo, colpa mia che non avevo guardato |
Keep track of whether to open files in a new tab or not (in $settings), and fix the open in new tab bug