Skip to content

Commit

Permalink
Merge pull request #531 from terwer/dev
Browse files Browse the repository at this point in the history
fix: replace old img
  • Loading branch information
terwer authored Nov 22, 2024
2 parents dfb036c + 000cdd5 commit d2fd906
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/renderer/useStaticClientAssets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ export const useStaticClientAssets = () => {
img.setAttribute("src", imgUrl)
}
}
// 兼容旧图片域名
if (src.indexOf("https://api.siyuannote.site") > -1) {
const imgUrl = src.replace("https://api.siyuannote.site", "https://img1.siyuan.wiki")
img.setAttribute("src", imgUrl)
}
})
logger.info("The local image has been processed and the picture display has been repaired.")
}
Expand Down

0 comments on commit d2fd906

Please sign in to comment.