Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: absidue <[email protected]>
  • Loading branch information
kommunarr and absidue authored Oct 14, 2024
1 parent 01c693d commit 2b17208
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,6 @@ export default defineComponent({
return store.getters.getSponsorBlockShowSkippedToast
})

/** @type {import('vue').ComputedRef<boolean>} */
const autoplayEnabled = computed(() => props.autoplayEnabled)

const sponsorSkips = computed(() => {
// save some work when sponsorblock is disabled
if (!useSponsorBlock.value) {
Expand Down Expand Up @@ -969,7 +966,7 @@ export default defineComponent({
}
})

watch(autoplayEnabled, (newValue, oldValue) => {
watch(() => props.autoplayEnabled, (newValue, oldValue) => {
if (newValue !== oldValue) {
events.dispatchEvent(new CustomEvent('setAutoplay', {
detail: newValue
Expand Down

0 comments on commit 2b17208

Please sign in to comment.