Skip to content

Commit

Permalink
style: run Prettier formatter script
Browse files Browse the repository at this point in the history
  • Loading branch information
DenverCoder1 committed Nov 16, 2023
1 parent 1b3f6b4 commit 431937b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/demo/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,10 @@ let clipboard = {
copy: function (el) {
const textToCopy = el.parentElement.querySelector("code").innerText;
// copy
navigator.clipboard.writeText(textToCopy)
.then(()=>{
navigator.clipboard.writeText(textToCopy).then(() => {
// set tooltip text
el.title = "Copied!";
})
});
},
};

Expand Down

0 comments on commit 431937b

Please sign in to comment.