Skip to content

Commit 354c8e5

Browse files
author
shuai
committed
fix: Optimize external resource image blocking
1 parent c40fe02 commit 354c8e5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ui/src/pages/Layout/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const Layout: FC = () => {
8686
) as NodeListOf<HTMLImageElement>;
8787

8888
images.forEach((img) => {
89-
// 标记为已处理,避免重复处理
89+
// Mark as processed to avoid duplication
9090
img.setAttribute('data-processed', 'true');
9191

9292
if (
@@ -122,7 +122,6 @@ const Layout: FC = () => {
122122
});
123123
}
124124
});
125-
// 如果发现新图片,处理它们
126125
if (hasNewImages) {
127126
replaceImgSrc();
128127
}

0 commit comments

Comments
 (0)