fix type issues

This commit is contained in:
MarconLP 2024-11-21 02:01:51 +01:00
parent d7649b8fee
commit 637290706a
No known key found for this signature in database
GPG key ID: A08A9C8B623F5EA5
2 changed files with 2 additions and 2 deletions

View file

@ -110,7 +110,7 @@ export default function Recorder({ closeModal, step, setStep }: Props) {
const tools = EBML.tools; const tools = EBML.tools;
const fileReader = new FileReader(); const fileReader = new FileReader();
fileReader.onload = function (e) { fileReader.onload = function () {
if (!this.result || typeof this.result === "string") return; if (!this.result || typeof this.result === "string") return;
const ebmlElms = decoder.decode(this.result); const ebmlElms = decoder.decode(this.result);
ebmlElms.forEach(function (element) { ebmlElms.forEach(function (element) {

View file

@ -22,7 +22,7 @@ interface Props {
} }
export default function VideoPlayer({ video_url, thumbnailUrl }: Props) { export default function VideoPlayer({ video_url, thumbnailUrl }: Props) {
let player = useRef<MediaPlayerInstance>(null); const player = useRef<MediaPlayerInstance>(null);
useEffect(() => { useEffect(() => {
// Subscribe to state updates. // Subscribe to state updates.