mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Update title with search query
This commit is contained in:
parent
688096c6f2
commit
8fe663da80
1 changed files with 5 additions and 0 deletions
|
@ -56,6 +56,11 @@ export default {
|
||||||
this.updateResults();
|
this.updateResults();
|
||||||
this.saveQueryToHistory();
|
this.saveQueryToHistory();
|
||||||
},
|
},
|
||||||
|
updated() {
|
||||||
|
if (this.$route.query.search_query !== undefined) {
|
||||||
|
document.title = this.$route.query.search_query + " - Piped";
|
||||||
|
}
|
||||||
|
},
|
||||||
activated() {
|
activated() {
|
||||||
this.handleRedirect();
|
this.handleRedirect();
|
||||||
window.addEventListener("scroll", this.handleScroll);
|
window.addEventListener("scroll", this.handleScroll);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue