File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 9999 } ) ;
100100 li . title += `\n Last modification date: ${ entry . lastModDate . toLocaleString ( ) } \n Compressed size: ${ entry . compressedSize . toLocaleString ( ) } bytes` ;
101101 } catch ( error ) {
102- if ( signal . reason . code == error . code ) {
102+ if ( signal . reason && signal . reason . code == error . code ) {
103103 if ( ! li . previousElementSibling && ! li . nextElementSibling ) {
104104 fileList . classList . add ( "empty" ) ;
105105 }
Original file line number Diff line number Diff line change 143143 const clickEvent = new MouseEvent ( "click" ) ;
144144 a . dispatchEvent ( clickEvent ) ;
145145 } catch ( error ) {
146- if ( signal . reason . code != error . code ) {
146+ if ( ! signal . reason || signal . reason . code != error . code ) {
147147 throw error ;
148148 }
149149 } finally {
You can’t perform that action at this time.
0 commit comments