Skip to content

Commit

Permalink
satisfy js linter
Browse files Browse the repository at this point in the history
  • Loading branch information
axiomizer committed Jul 23, 2023
1 parent 1bda8a5 commit 9a30a36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bookwyrm/static/js/bookwyrm.js
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,7 @@ let BookWyrm = new (class {
copyWithTooltip(copyButtonEl) {
const text = document.getElementById(copyButtonEl.dataset.contentId).innerHTML;
const tooltipEl = document.getElementById(copyButtonEl.dataset.tooltipId);

copyButtonEl.addEventListener("click", () => {
navigator.clipboard.writeText(text);
tooltipEl.style.visibility = "visible";
Expand Down

0 comments on commit 9a30a36

Please sign in to comment.