Skip to content

Commit

Permalink
Capitalize shortcut
Browse files Browse the repository at this point in the history
Signed-off-by: Glenn Lewis <[email protected]>
  • Loading branch information
gmlewis committed Oct 8, 2023
1 parent f10325c commit cebee09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/SearchBooks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ const newSearch = () => {
}
books.value = lookup
document.title = `Personalized books for ${name.value} by Glenn Lewis`
shortcut.value = `https://gmlewis.github.io/personalized-books/?q=${name.value}`
const queryName = name.value.charAt(0).toUpperCase() + name.value.slice(1)
shortcut.value = `https://gmlewis.github.io/personalized-books/?q=${queryName}`
}
watch(name, () => newSearch())
Expand Down

0 comments on commit cebee09

Please sign in to comment.