fix: address code review feedback on tests and placeholder messages

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-01 07:51:07 +00:00
parent c814af1145
commit d095e30467
3 changed files with 20 additions and 8 deletions
+13 -1
View File
@@ -655,7 +655,19 @@
navigator.clipboard.writeText(text.join('\n')).then(function() {
btn.innerHTML = '<i class="fas fa-check"></i> Copied!';
setTimeout(function() { btn.innerHTML = orig; }, 2000);
}).catch(function() {});
}).catch(function() {
try {
var ta = document.createElement('textarea');
ta.value = text.join('\n');
ta.style.cssText = 'position:fixed;opacity:0;';
document.body.appendChild(ta);
ta.select();
document.execCommand('copy');
document.body.removeChild(ta);
btn.innerHTML = '<i class="fas fa-check"></i> Copied!';
setTimeout(function() { btn.innerHTML = orig; }, 2000);
} catch(e) {}
});
}
// ── Initialise on load ──