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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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() {