Add injected Menu Items

This commit is contained in:
Raven Scott
2024-10-02 06:02:29 -04:00
parent 8553e94547
commit e55bc2978a
2 changed files with 24 additions and 1 deletions

View File

@ -80,7 +80,7 @@ function displayMessage(content, sender) {
// Adds a copy button to a code block
function addCopyButton(block) {
const button = document.createElement('button');
button.classList.add('copy-button');
button.classList.add('copy-button-code');
button.textContent = 'Copy';
button.addEventListener('click', () => copyToClipboard(block));
block.parentNode.appendChild(button);