Skip to content

Commit

Permalink
fix(client): remove www. prefix from site url
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Jan 16, 2022
1 parent f1d5376 commit 83e4541
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/client/components/NavBar.vue
Expand Up @@ -31,7 +31,7 @@ const favIcon = computed(() => {
</div>
<div class="text-sm flex items-center">
<a :href="website" class="flex items-center pt-1" target="_blank">
<img :src="favIcon" width="16" height="16" class="mr-1">{{ website.replace('https://', '').replace('http://', '') }}
<img :src="favIcon" width="16" height="16" class="mr-1">{{ website.replace('https://', '').replace('http://', '').replace('www.', '') }}
</a>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions packages/client/components/Results/ResultsRow.vue
@@ -1,5 +1,6 @@
<script lang="ts" setup>
import type { UnlighthouseRouteReport } from '@unlighthouse/core'
import { dynamicSampling } from '../../logic'
const props = defineProps<{
routeName: string
Expand All @@ -19,12 +20,11 @@ const reportsScore = computed(() => {
<div class="grid grid-cols-12 gap-4 text-xs w-full">
<div class="flex items-center justify-between col-span-4 lg:col-span-3 xl:col-span-2">
<span>{{ routeName }}</span>
<span v-if="reports.length > 1">
<span v-if="reports.length >= dynamicSampling">
<tooltip>
<span class="whitespace-nowrap ml-2 opacity-90">{{ reports.length }} routes</span>
<template #tooltip>
<p>Sampling of dynamic routes enabled.</p>
See <code>scanner.sampling</code>.
<p><code>scanner.dynamicSampling</code> is set to {{ sampling }}</p>
</template>
</tooltip>
</span>
Expand Down

0 comments on commit 83e4541

Please sign in to comment.