Update title with search query

This commit is contained in:
guemax 2024-07-12 09:05:30 +02:00
parent 688096c6f2
commit 8fe663da80
No known key found for this signature in database
GPG key ID: 85916548E34D20A0

View file

@ -56,6 +56,11 @@ export default {
this.updateResults();
this.saveQueryToHistory();
},
updated() {
if (this.$route.query.search_query !== undefined) {
document.title = this.$route.query.search_query + " - Piped";
}
},
activated() {
this.handleRedirect();
window.addEventListener("scroll", this.handleScroll);