mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
fix: regression in cite copy button
Button action started copying wrapping HTML tags too
This commit is contained in:
parent
b026701dd6
commit
1ed86e35ab
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||
$('.js-copy-cite').click(function (e) {
|
||||
e.preventDefault();
|
||||
// Get text to copy.
|
||||
let citation = document.querySelector('#modal .modal-body').innerHTML;
|
||||
let citation = document.querySelector('#modal .modal-body code').innerHTML;
|
||||
navigator.clipboard
|
||||
.writeText(citation)
|
||||
.then(function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue