Skip to content

Commit 50dc031

Browse files
committed
fix: observer target selector
1 parent 206dae2 commit 50dc031

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
@@ -534,7 +534,7 @@ async function upload(element, data) {
534534
}
535535

536536
// Append the first segment to start
537-
appendSegmfent(0);
537+
appendSegment(0);
538538
});
539539

540540

@@ -877,7 +877,7 @@ async function Delete(file) {
877877
Observer.init({
878878
name: 'CoCreateFileAddedNodes',
879879
observe: ['addedNodes'],
880-
target: 'input[type="file"]',
880+
target: '[type="file"]',
881881
callback: mutation => init(mutation.target)
882882

883883
});
@@ -886,7 +886,7 @@ Observer.init({
886886
name: 'CoCreateFileAttributes',
887887
observe: ['attributes'],
888888
attributeName: ['type'],
889-
target: 'input[type="file"]',
889+
target: '[type="file"]',
890890
callback: mutation => init(mutation.target)
891891
});
892892

0 commit comments

Comments
 (0)