support shadow dom
This commit is contained in:
@@ -53,7 +53,6 @@ export class Translator {
|
|||||||
_mutaObserver = new MutationObserver((mutations) => {
|
_mutaObserver = new MutationObserver((mutations) => {
|
||||||
mutations.forEach((mutation) => {
|
mutations.forEach((mutation) => {
|
||||||
mutation.addedNodes.forEach((node) => {
|
mutation.addedNodes.forEach((node) => {
|
||||||
console.log("node", node);
|
|
||||||
try {
|
try {
|
||||||
queryNodes(this.rule.selector, node).forEach((el) => {
|
queryNodes(this.rule.selector, node).forEach((el) => {
|
||||||
this._interseObserver.observe(el);
|
this._interseObserver.observe(el);
|
||||||
|
|||||||
Reference in New Issue
Block a user