fix: createMutationObserver
This commit is contained in:
@@ -562,8 +562,7 @@ export class Translator {
|
|||||||
mutation.addedNodes.forEach((node) => {
|
mutation.addedNodes.forEach((node) => {
|
||||||
if (
|
if (
|
||||||
this.#skipMoNodes.has(node) ||
|
this.#skipMoNodes.has(node) ||
|
||||||
node.nodeName === this.#translationTagName ||
|
node.nodeName === this.#translationTagName
|
||||||
!node.innerText
|
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user