fix: rules
This commit is contained in:
@@ -960,6 +960,7 @@ export class Translator {
|
||||
transOnly,
|
||||
selectStyle,
|
||||
parentStyle,
|
||||
grandStyle,
|
||||
// detectRemote,
|
||||
// toLang,
|
||||
// skipLangs = [],
|
||||
@@ -1046,6 +1047,9 @@ export class Translator {
|
||||
if (parentStyle && parentNode && parentNode.style) {
|
||||
parentNode.style.cssText += parentStyle;
|
||||
}
|
||||
if (grandStyle && parentNode && parentNode.parentElement) {
|
||||
parentNode.parentElement.style.cssText += grandStyle;
|
||||
}
|
||||
|
||||
// 翻译完成钩子函数
|
||||
if (transEndHook?.trim()) {
|
||||
|
||||
Reference in New Issue
Block a user