Thank you for your submission, an automated scan of your plugin code's revealed the following issues:

[[1](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/api.ts#L100)][[2](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/api.ts#L136)][[3](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/api.ts#L140)][[4](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/api.ts#L141)][[5](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/api.ts#L145)][[6](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/api.ts#L146)][[7](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/api.ts#L375)][[8](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/api.ts#L391)][[9](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/api.ts#L393)][[10](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/api.ts#L394)][[11](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/api.ts#L416)][[12](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/api.ts#L462)][[13](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/api.ts#L523)][[14](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/api.ts#L549)][[15](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/api.ts#L553)][[16](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/api.ts#L554)][[17](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/api.ts#L558)][[18](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/api.ts#L559)]:You should change all instances of `var` to either `const` or `let`. `var` has function-level scope, so it can easily lead to bugs if you're not careful. Here's a pretty good guide with examples of why not to use `var`: [why `var` is obsolete](https://javascript.plainenglish.io/4-reasons-why-var-is-considered-obsolete-in-modern-javascript-a30296b5f08f)

[[1](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/showModals.ts#L235)][[2](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/showModals.ts#L285)]:Using `innerHTML`, `outerHTML` or similar API's is a security risk. Instead, use the DOM API or the Obsidian helper functions: <https://docs.obsidian.md/Plugins/User+interface/HTML+elements>

[[1](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/settings.ts#L34)][[2](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/settings.ts#L38)][[3](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/settings.ts#L57)][[4](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/api.ts#L82)][[5](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/api.ts#L168)][[6](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/api.ts#L257)][[7](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/api.ts#L460)][[8](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/api.ts#L581)][[9](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/main.ts#L75)][[10](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/main.ts#L101)][[11](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/main.ts#L106)][[12](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/main.ts#L107)][[13](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/main.ts#L118)][[14](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/main.ts#L123)][[15](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/main.ts#L124)][[16](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/main.ts#L140)]:You should consider limiting the number of `console.log`s in your code, to not pollute the dev console.



---

[[1](https://github.com/ai-chen2050/obsidian-wechat-public-platform/blob/30cbb4556328816dd25638454393578537989862/src/settingTab.ts#L138)]:Casting to `any` should be avoided as much as possible.



---



Do <b>NOT</b> open a new PR for re-validation. If you think some of these results are incorrect, please include `/skip` in your comment and the reason why you think the results are incorrect.
Once you have pushed all of the required changes, the bot will reevaluate your PR within 4 hours.