fix: BUG-006 copy feedback, BUG-008 white border CSS reset, BUG-010 CORS allow all origins

This commit is contained in:
OpenClaw 2026-02-14 15:41:22 +00:00
parent d8bc3fd8e6
commit 53bebc0119
3 changed files with 6 additions and 7 deletions

View file

@ -66,8 +66,9 @@ async function submitSignup() {
function copyKey() {
var key = document.getElementById('apiKeyDisplay').textContent;
navigator.clipboard.writeText(key).then(function() {
var btn = document.getElementById('apiKeyDisplay'); var origText = btn.textContent; btn.textContent = 'Copied!'; document.querySelector('.copy-hint').textContent = '✓ Copied!';
setTimeout(function() { btn.textContent = origText; document.querySelector('.copy-hint').textContent = 'Click to copy'; }, 2000);
var hint = document.querySelector('.copy-hint');
hint.textContent = '✓ Copied!';
setTimeout(function() { hint.textContent = 'Click to copy'; }, 2000);
});
}