Skip to content

Commit 045ff1f

Browse files
committed
remove comments
1 parent 418e5cf commit 045ff1f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/theme/IdealImage/index.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)