fix: PIN copy revert uses data-pin instead of captured text
Universal: Auto Version Bump / Version Bump (push) Successful in 8s
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Successful in 17s

Clicking while showing "Copied!" captured "Copied!" as the revert
value, so the PIN text never returned. Now uses the stable data-pin
attribute as the revert source.
This commit is contained in:
2026-06-25 12:08:36 -05:00
parent 4394788460
commit 0b59dadb67
@@ -197,9 +197,8 @@ class SupportPinHelper
var textEl = this.querySelector('.mokosuiteclient-pin-text');
navigator.clipboard.writeText(pin).then(function() {
if (textEl) {
var orig = textEl.textContent;
textEl.textContent = 'Copied!';
setTimeout(function() { textEl.textContent = orig; }, 30000);
setTimeout(function() { textEl.textContent = pin; }, 30000);
}
});
}