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() { deactivated() {
this.active = false; this.active = false;
window.removeEventListener("scroll", this.handleScroll); window.removeEventListener("scroll", this.handleScroll);
this.dismiss();
}, },
unmounted() { unmounted() {
window.removeEventListener("scroll", this.handleScroll); window.removeEventListener("scroll", this.handleScroll);
window.removeEventListener("click", this.handleClick); window.removeEventListener("click", this.handleClick);
this.dismiss();
}, },
methods: { methods: {
fetchVideo() { fetchVideo() {