Skip to content

Commit 637885c

Browse files
committed
fix: streamline UUID assignment in init function
1 parent 0e9e8dc commit 637885c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/index.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,7 @@
2727
elements.forEach(el => {
2828
const len = parseInt(el.getAttribute(self.attribute)) || 36;
2929
const uuid = self.generate(len)
30-
el.setValue(uuid)
31-
// if (el.tagName === "INPUT" || el.tagName === "TEXTAREA") {
32-
// el.value = uuid;
33-
// } else {
34-
// el.innerHTML = uuid;
35-
// }
30+
el.setValue(uuid);
3631
})
3732
},
3833

0 commit comments

Comments
 (0)