Skip to content

Commit

Permalink
Fix: refresh video state on component reload (closes #35)
Browse files Browse the repository at this point in the history
  • Loading branch information
mateussouzaweb committed Jan 31, 2024
1 parent 55d2347 commit d0569ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ const onMount: Callback = (component) => {
backwardVideo(seconds)
})
watch(element, 'view::reload', () => {
component.render()
component.render(state())
})

}
Expand Down

0 comments on commit d0569ab

Please sign in to comment.