Skip to content

Commit

Permalink
Append dom element on scan
Browse files Browse the repository at this point in the history
  • Loading branch information
DMS Host committed Jun 24, 2024
1 parent fe68877 commit e6910c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ function triggerRead() {

count++;

content.textContent = `Scanned items = ${count}`;
const paragraph = document.createElement("p");
paragraph.textContent = "Scanned an Item!"
content.appendChild(paragraph);
const sleepTimer = new Promise((resolve) => {
setTimeout(() => {
resolve();
Expand Down

0 comments on commit e6910c6

Please sign in to comment.