added comments

This commit is contained in:
Ethan 2022-03-22 03:00:16 -05:00
parent 948a058363
commit 6a2af4f505
2 changed files with 4 additions and 0 deletions

View File

@ -166,6 +166,8 @@ export default {
},
watch: {
// Watch for any changes in the route string
// When change is detected, scroll main div back to the top
$route() {
this.$refs.pgscroll.scrollTop = 0; // scroll back to top when moving to new route
}

View File

@ -171,6 +171,8 @@ export default {
}
},
watch: {
// Watch for change in the route query string (in this case, ?v=xxxxxxxx to ?v=yyyyyyyy)
// When change is detected, reset and run getVideo function again
$route: {
deep: true,
handler(newRt, oldRt) {