Skip to content

Commit 662bf5a

Browse files
committed
fix: update observer observe param to type and and attributeName to attributeFilter
1 parent 2942e5a commit 662bf5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ document.addEventListener("fetchedData", () => {
142142

143143
observer.init({
144144
name: "CoCreateConditionalLogic",
145-
observe: ["addedNodes"],
145+
types: ["addedNodes"],
146146
selector: "[show], [hide]",
147147
callback: function (mutation) {
148148
initElement(mutation.target);

0 commit comments

Comments
 (0)