From f1c1cb94f86f96113cf48d4c7a9a0263d2007bd3 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Sat, 29 Apr 2023 19:45:13 +0100 Subject: [PATCH] Dismiss autoplay on page unload. --- src/components/WatchVideo.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/WatchVideo.vue b/src/components/WatchVideo.vue index 248a6640..3a8e029a 100644 --- a/src/components/WatchVideo.vue +++ b/src/components/WatchVideo.vue @@ -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() {