Skip to content

Commit 42d8a89

Browse files
committed
fix: update observer observe param to type and and attributeName to attributeFilter
1 parent 610f591 commit 42d8a89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ window.addEventListener("popstate", function (event) {
238238

239239
Observer.init({
240240
name: "CoCreateState",
241-
observe: ["addedNodes"],
241+
types: ["addedNodes"],
242242
selector: "[state_id]",
243243
callback: function (mutation) {
244244
initElement(mutation.target);

0 commit comments

Comments
 (0)