File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,6 @@ export default function IdealImage(
220220 const controller = new AbortController ( ) ;
221221 const signal = controller . signal ;
222222 const timeout = setTimeout ( ( ) => {
223- console . log ( "Timeout reached, aborting fetch..." ) ;
224223 controller . abort ( ) ;
225224 setNetworkType ( "3g" ) ;
226225 } , 1000 ) ; // 1 second timeout
@@ -239,18 +238,14 @@ export default function IdealImage(
239238 clearTimeout ( timeout ) ;
240239
241240 if ( duration > 1 ) {
242- console . log ( "Took too long, setting as 3g" ) ;
243241 setNetworkType ( "3g" ) ;
244242 } else {
245- console . log ( `Loaded ${ url } quickly in ${ duration } , setting as 4g` ) ;
246243 setNetworkType ( "4g" ) ;
247244 }
248245 } catch ( error ) {
249246 if ( error . name === "AbortError" ) {
250- console . log ( "Fetch aborted due to timeout." ) ;
251247 setNetworkType ( "3g" ) ;
252248 } else {
253- console . error ( "Fetch failed:" , error ) ;
254249 setNetworkType ( "3g" ) ;
255250 }
256251 }
You can’t perform that action at this time.
0 commit comments