Skip to content

Commit 4348a76

Browse files
Potential fix for code scanning alert no. 7: Use of externally-controlled format string
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: 沙漠之子 <7850715+maboloshi@users.noreply.github.com>
1 parent c6a73e0 commit 4348a76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main.user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@
408408
const reason = pageType === false
409409
? '路径未匹配任何页面规则'
410410
: `词库中缺少 "${pageType}" 的翻译`;
411-
console.warn(`[i18n] ${reason}`, {
411+
console.warn('[i18n] %s', reason, {
412412
url: window.location.href,
413413
hostname,
414414
pathname,

0 commit comments

Comments
 (0)