mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-13 19:58:23 +00:00
Dismiss autoplay on page unload.
This commit is contained in:
parent
096999a69e
commit
f1c1cb94f8
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user