Theme Files Update

This commit is contained in:
GitHub Action 2023-10-21 07:07:27 +00:00
parent 4cdbb6c7c7
commit 63d3658bb2

View file

@ -36,7 +36,11 @@
var codeEl = containerEl.firstElementChild; var codeEl = containerEl.firstElementChild;
copyBtn.addEventListener('click', function() { copyBtn.addEventListener('click', function() {
try { try {
var selection = selectText(codeEl); if(codeEl.firstElementChild instanceof HTMLTableElement) {
var selection = selectText(codeEl.firstElementChild.firstElementChild.firstElementChild.lastElementChild);
} else {
var selection = selectText(codeEl);
}
document.execCommand('copy'); document.execCommand('copy');
selection.removeAllRanges(); selection.removeAllRanges();