Dismiss autoplay on page unload.

This commit is contained in:
Kavin
2023-04-29 19:45:13 +01:00
committed by GitHub
parent 096999a69e
commit f1c1cb94f8

View File

@ -372,10 +372,12 @@ export default {
deactivated() {
this.active = false;
window.removeEventListener("scroll", this.handleScroll);
this.dismiss();
},
unmounted() {
window.removeEventListener("scroll", this.handleScroll);
window.removeEventListener("click", this.handleClick);
this.dismiss();
},
methods: {
fetchVideo() {