Skip to content

Commit

Permalink
feat: add switch for auto upload and replace link
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Apr 18, 2024
1 parent 799f592 commit de999fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/picgo-plugin-bootstrap/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,12 @@ export default class PicgoPlugin extends Plugin {
await siyuanApi.setBlockAttrs(pageId, {
[SIYUAN_PICGO_FILE_MAP_KEY]: newFileMapStr,
})
this.logger.info("🤩图片元数据更新成功")
pluginInstance.logger.info("🤩图片元数据更新成功")

// =================================================================================================================
// 不替换链接
if (!isReplaceLink) {
this.logger.warn("未启用链接替换,不做替换")
pluginInstance.logger.warn("未启用链接替换,不做替换")
return
}
// =================================================================================================================
Expand Down

0 comments on commit de999fa

Please sign in to comment.