File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -91,8 +91,7 @@ class ShellContainer extends React.Component<Props, State> implements ShellFunct
9191 }
9292
9393 private onChangeFile ( ) {
94- if ( location . hash . includes ( '#feedbot-direct-upload' ) ) {
95- console . log ( this . props )
94+ if ( true || location . hash . includes ( '#feedbot-direct-upload' ) ) {
9695 const attachmentUrl = this . props . attachmentUrl
9796 const f = this . fileInput . files [ 0 ]
9897 const reader = new FileReader ( )
@@ -121,7 +120,7 @@ class ShellContainer extends React.Component<Props, State> implements ShellFunct
121120 reader . readAsBinaryString ( f )
122121 }
123122
124- this . props . sendFiles ( this . fileInput . files , location . hash . includes ( '#feedbot-direct-upload' ) ) ;
123+ this . props . sendFiles ( this . fileInput . files , true || location . hash . includes ( '#feedbot-direct-upload' ) ) ;
125124 this . fileInput . value = null ;
126125 this . textInput . focus ( ) ;
127126 }
@@ -163,7 +162,7 @@ class ShellContainer extends React.Component<Props, State> implements ShellFunct
163162 clearTimeout ( this . addFileTimeout )
164163 this . addFileTimeout = setTimeout ( ( ) => {
165164 console . log ( 'addFile timeout' )
166- this . props . sendFiles ( [ file ] , location . hash . includes ( '#feedbot-direct-upload' ) )
165+ this . props . sendFiles ( [ file ] , true || location . hash . includes ( '#feedbot-direct-upload' ) )
167166 } , 75 )
168167 }
169168
You can’t perform that action at this time.
0 commit comments