fix: fix an issue with videodatachangefired timing

This commit is contained in:
JellyBrick
2023-11-30 00:45:15 +09:00
parent 4c0cce89ee
commit d78da237fc
5 changed files with 59 additions and 26 deletions

2
src/reset.d.ts vendored
View File

@ -4,6 +4,7 @@ import type { ipcRenderer as electronIpcRenderer } from 'electron';
import type is from 'electron-is';
import type config from './config';
import type { VideoDataChanged } from '@/types/video-data-changed';
declare global {
interface Compressor {
@ -13,6 +14,7 @@ declare global {
interface DocumentEventMap {
'audioCanPlay': CustomEvent<Compressor>;
'videodatachange': CustomEvent<VideoDataChanged>;
}
interface Window {