diff --git a/src/routes/WatchVideo.vue b/src/routes/WatchVideo.vue index 71f6b6f..5301d41 100644 --- a/src/routes/WatchVideo.vue +++ b/src/routes/WatchVideo.vue @@ -248,10 +248,14 @@ export default { if (!this.$store.getters['prefs/getPreference']('sponsorblock', true)) { return } + const selectedSkip = this.$store.getters['prefs/getPreference']('selectedSkip') + if (selectedSkip.length === 0) { + return + } this.sponsors = await this.$store.dispatch('auth/makeRequest', { path: '/sponsors/' + this.videoId, params: { - category: JSON.stringify(this.$store.getters['prefs/getPreference']('selectedSkip')) + category: JSON.stringify() } }) },