mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-12-23 14:03:35 +00:00
fix the autoplay preference
This commit is contained in:
parent
4d9e6865ce
commit
91611ac8a6
@ -325,7 +325,7 @@ export default {
|
||||
},
|
||||
activated() {
|
||||
this.active = true;
|
||||
this.selectedAutoPlay = this.getPreferenceBoolean("autoplay", false);
|
||||
this.selectedAutoPlay = this.getPreferenceBoolean("playerAutoPlay", false);
|
||||
this.showDesc = !this.getPreferenceBoolean("minimizeDescription", false);
|
||||
this.showRecs = !this.getPreferenceBoolean("minimizeRecommendations", false);
|
||||
if (this.video.duration) {
|
||||
@ -360,7 +360,7 @@ export default {
|
||||
return this.fetchJson(this.apiUrl() + "/comments/" + this.getVideoId());
|
||||
},
|
||||
onChange() {
|
||||
this.setPreference("autoplay", this.selectedAutoPlay);
|
||||
this.setPreference("playerAutoPlay", this.selectedAutoPlay);
|
||||
},
|
||||
async getVideoData() {
|
||||
await this.fetchVideo()
|
||||
|
Loading…
Reference in New Issue
Block a user