Skip to content

Commit e93beca

Browse files
refactor: clarify code element naming
Co-authored-by: jamesmontemagno <1676321+jamesmontemagno@users.noreply.github.com> Agent-Logs-Url: https://github.com/copilot-dev-days/agent-lab-python/sessions/f398ad34-4328-47f8-b47a-52157fb85dc3
1 parent 0731153 commit e93beca

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/step.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,8 @@
325325

326326
const codeBlocks = container.querySelectorAll('pre');
327327
codeBlocks.forEach((block) => {
328-
const code = block.querySelector('code');
329-
if (!code || block.querySelector('.code-copy-btn')) return;
328+
const codeElement = block.querySelector('code');
329+
if (!codeElement || block.querySelector('.code-copy-btn')) return;
330330

331331
const button = document.createElement('button');
332332
button.type = 'button';
@@ -337,7 +337,7 @@
337337
let resetTimeoutId = null;
338338
button.addEventListener('click', async () => {
339339
try {
340-
await copyTextToClipboard(code.textContent ?? '');
340+
await copyTextToClipboard(codeElement.textContent ?? '');
341341
button.textContent = 'Copied!';
342342
button.classList.add('copied');
343343
} catch {

0 commit comments

Comments
 (0)