|
203 | 203 | signatureValue.textContent = `${buffer}...[${signature.byteLength} bytes total]`;
|
204 | 204 | }
|
205 | 205 |
|
206 |
| - /* |
207 |
| - Hide and disable the sign button if key unwrapping failed. |
208 |
| - */ |
209 |
| - function resetSignButton() { |
210 |
| - signButton.setAttribute("disabled", true); |
211 |
| - signButton.classList.add("hidden"); |
212 |
| - } |
| 206 | + /* |
| 207 | + Hide and disable the sign button if key unwrapping failed. |
| 208 | + */ |
| 209 | + function resetSignButton() { |
| 210 | + signButton.setAttribute("disabled", true); |
| 211 | + signButton.classList.add("hidden"); |
| 212 | + } |
213 | 213 |
|
214 |
| - /* |
215 |
| - Show and enable the sign button if key unwrapping succeeded. |
216 |
| - */ |
217 |
| - function enableSignButton() { |
218 |
| - signButton.classList.add('fade-in'); |
219 |
| - signButton.addEventListener('animationend', () => { |
220 |
| - signButton.classList.remove('fade-in'); |
221 |
| - }); |
222 |
| - signButton.removeAttribute("disabled"); |
223 |
| - signButton.classList.remove("hidden"); |
224 |
| - } |
| 214 | + /* |
| 215 | + Show and enable the sign button if key unwrapping succeeded. |
| 216 | + */ |
| 217 | + function enableSignButton() { |
| 218 | + signButton.classList.add('fade-in'); |
| 219 | + signButton.addEventListener('animationend', () => { |
| 220 | + signButton.classList.remove('fade-in'); |
| 221 | + }); |
| 222 | + signButton.removeAttribute("disabled"); |
| 223 | + signButton.classList.remove("hidden"); |
| 224 | + } |
225 | 225 |
|
226 | 226 | /*
|
227 | 227 | When the user clicks "Unwrap Key"
|
|
0 commit comments