fix type issues
This commit is contained in:
parent
d7649b8fee
commit
637290706a
2 changed files with 2 additions and 2 deletions
|
|
@ -110,7 +110,7 @@ export default function Recorder({ closeModal, step, setStep }: Props) {
|
|||
const tools = EBML.tools;
|
||||
|
||||
const fileReader = new FileReader();
|
||||
fileReader.onload = function (e) {
|
||||
fileReader.onload = function () {
|
||||
if (!this.result || typeof this.result === "string") return;
|
||||
const ebmlElms = decoder.decode(this.result);
|
||||
ebmlElms.forEach(function (element) {
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ interface Props {
|
|||
}
|
||||
|
||||
export default function VideoPlayer({ video_url, thumbnailUrl }: Props) {
|
||||
let player = useRef<MediaPlayerInstance>(null);
|
||||
const player = useRef<MediaPlayerInstance>(null);
|
||||
|
||||
useEffect(() => {
|
||||
// Subscribe to state updates.
|
||||
|
|
|
|||
Loading…
Reference in a new issue