satisfy js linter

This commit is contained in:
axiomizer 2023-07-22 22:34:10 -04:00
parent 1bda8a5d9d
commit 9a30a3656a

View file

@ -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";