Revert "fix the autoplay preference"

This reverts commit 91611ac8a6.
This commit is contained in:
Bnyro 2022-08-28 12:32:39 +02:00 committed by Kavin
parent 04d65a164c
commit 527f564017
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD

View File

@ -325,7 +325,7 @@ export default {
},
activated() {
this.active = true;
this.selectedAutoPlay = this.getPreferenceBoolean("playerAutoPlay", false);
this.selectedAutoPlay = this.getPreferenceBoolean("autoplay", 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("playerAutoPlay", this.selectedAutoPlay);
this.setPreference("autoplay", this.selectedAutoPlay);
},
async getVideoData() {
await this.fetchVideo()