mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Dismiss autoplay on page unload.
This commit is contained in:
parent
096999a69e
commit
f1c1cb94f8
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue