Merge remote-tracking branch 'origin/master' into dev
This commit is contained in:
@@ -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
@@ -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);
|
||||
|
||||
// 已翻译
|
||||
|
||||
Reference in New Issue
Block a user