Merge remote-tracking branch 'origin/master' into dev

This commit is contained in:
Gabe
2025-08-22 21:46:07 +08:00
9 changed files with 459 additions and 1 deletions

View File

@@ -452,6 +452,7 @@ const genClaude = ({
headers: {
"Content-type": "application/json",
"anthropic-version": "2023-06-01",
"anthropic-dangerous-direct-browser-access": "true",
"x-api-key": key,
...customHeader,
},

File diff suppressed because it is too large Load Diff

View File

@@ -467,6 +467,11 @@ export class Translator {
q.length > (this._setting.maxLength ?? TRANS_MAX_LENGTH);
_render = (el) => {
// 检查元素是否有效
if (!el || typeof el.innerText === "undefined") {
return;
}
let traEl = el.querySelector(APP_LCNAME);
// 已翻译