Skip to content

Commit 7926040

Browse files
committed
chore: add comment
1 parent 5f93f6c commit 7926040

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎src/contentScript.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,10 @@ const timerId = setInterval(() => {
541541
clearInterval(timerId);
542542
return console.error(t("app.initializeContentScriptFailed"));
543543
}
544-
if(document.title.includes("力扣加加")) return
544+
545+
// 防止 insertButton 在本插件应用中执行,会匹配到题目中包含 "Run" 的情况,例如:“1480. Running Sum of 1d Array”
546+
if (document.title.includes("力扣加加")) return
547+
545548
insertButton();
546549

547550
// if (inserted && submitProxied) {

0 commit comments

Comments
 (0)