From 527f5640174df0f6699b7ef3a1d152dff756ae08 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sun, 28 Aug 2022 12:32:39 +0200 Subject: [PATCH] Revert "fix the autoplay preference" This reverts commit 91611ac8a64c74b14e93d9f79405ad44496c5e0c. --- src/components/WatchVideo.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/WatchVideo.vue b/src/components/WatchVideo.vue index 3a0d9ad0..d6a46c89 100644 --- a/src/components/WatchVideo.vue +++ b/src/components/WatchVideo.vue @@ -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()