Fix a focus bug (#92)

* Fix a focus bug

* Lint fix

---------

Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
Brahim Hadricheandgithub-action linter authored and GitHub committed 2023-06-28 14:55:31 -04:00
1 parent bdaaf17785
commit 05f2481f87
2 files changed
+4

No files matched your search

@@ -26,9 +26,12 @@ function PlayVideo(videoId as string, args = invalid as object)
height = videoContainer.videoPlayer.height
translation = videoContainer.videoPlayer.translation
end if
previousSender = videoContainer.sender
CloseVideo(false)
if sender <> invalid
videoContainer.sender = sender
else
videoContainer.sender = previousSender
end if
videoContainer.videoPlayer = videoContainer.createChild("VideoPlayer")
videoContainer.insertChild(videoContainer.videoPlayer, 0)