Skip to content

Commit 524a05e

Browse files
committed
fix: update observer observe param to type and and attributeName to attributeFilter
1 parent 3e78905 commit 524a05e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/client.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -968,15 +968,15 @@ async function Delete(file) {
968968

969969
Observer.init({
970970
name: "CoCreateFileAddedNodes",
971-
observe: ["addedNodes"],
971+
types: ["addedNodes"],
972972
selector: '[type="file"]',
973973
callback: (mutation) => init(mutation.target)
974974
});
975975

976976
Observer.init({
977977
name: "CoCreateFileAttributes",
978-
observe: ["attributes"],
979-
attributeName: ["type"],
978+
types: ["attributes"],
979+
attributeFilter: ["type"],
980980
selector: '[type="file"]',
981981
callback: (mutation) => init(mutation.target)
982982
});

0 commit comments

Comments
 (0)