support shadow dom

This commit is contained in:
Gabe Yuan
2023-08-23 18:01:47 +08:00
parent f246efc84b
commit c2e0064253

View File

@@ -53,7 +53,6 @@ export class Translator {
_mutaObserver = new MutationObserver((mutations) => {
mutations.forEach((mutation) => {
mutation.addedNodes.forEach((node) => {
console.log("node", node);
try {
queryNodes(this.rule.selector, node).forEach((el) => {
this._interseObserver.observe(el);