1
0
mirror of https://github.com/TeamPiped/Piped.git synced 2024-12-13 22:00:28 +05:30

Merge pull request #1342 from Bnyro/fix

fix the autoplay preference
This commit is contained in:
Bnyro 2022-08-28 12:33:08 +02:00 committed by GitHub
commit 04d65a164c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()