1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2025-01-06 21:49:40 +02:00

Fix codepoint copy

This commit is contained in:
Matthew Toohey 2023-04-12 20:39:19 -04:00 committed by Fini
parent 8d09587e84
commit b0c3f57348

View File

@ -338,7 +338,7 @@ document.addEventListener('DOMContentLoaded', function () {
}
}
} else if (parent.className.startsWith('column') && target.className === 'codepoint') {
textToCopy = parent.parentNode.querySelector('.codepoint').innerText;
textToCopy = target.innerText;
}
if (textToCopy.length > 0) {
gtag('event', event.target.className, {