Commit 817ee7d 1 parent a3eec40 commit 817ee7d Copy full SHA for 817ee7d
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ async function uploadVideo(videoJSON: Video) {
109
109
await fileChooser . accept ( [ pathToFile ] )
110
110
111
111
// Setup onProgress
112
- let progressChecker : NodeJS . Timer | undefined
112
+ let progressChecker : any
113
113
let progress : VideoProgress = { progress : 0 , stage : ProgressEnum . Uploading } ;
114
114
if ( videoJSON . onProgress ) {
115
115
videoJSON . onProgress ( progress )
@@ -121,7 +121,7 @@ async function uploadVideo(videoJSON: Video) {
121
121
return items . item ( i ) . textContent ;
122
122
}
123
123
} )
124
- if ( ! progressChecker || ! curProgress ) return
124
+ if ( progressChecker == undefined || ! curProgress ) return
125
125
curProgress = curProgress . split ( " " ) . find ( ( txt : string ) => txt . indexOf ( "%" ) != - 1 )
126
126
let newProgress = curProgress ? parseInt ( curProgress . slice ( 0 , - 1 ) ) : 0
127
127
if ( progress . progress == newProgress ) return
You can’t perform that action at this time.
0 commit comments