Skip to content

Commit

Permalink
fix: just use performance score for favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 2, 2024
1 parent b70f318 commit 57ffbce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const favicon = computed(() => {
const value = status.value === 'pending' || (domain.value && !results.value)
? undefined
: (results.value ? Math.floor((results.value.performance + results.value.accessibility + results.value.bestPractices + results.value.seo) / 4) : 100)
: (results.value ? results.value.performance : 100)
const color = !value ? '#6b7280' : value >= 90 ? '#23c55e' : value >= 50 ? '#fbbf24' : '#ef4444'
const svg = `<svg xmlns="http://www.w3.org/2000/svg" height="${radius * 2}" width="${radius * 2}">
<style>@keyframes spin {
Expand Down

0 comments on commit 57ffbce

Please sign in to comment.