Spaces:
Running
Running
fix decrypt not updating content
Browse files- wasm-demo.js +2 -0
wasm-demo.js
CHANGED
@@ -419,7 +419,9 @@ function encryptWorker_onmessage(e) {
|
|
419 |
show('encIcon', true);
|
420 |
enable('btnEncrypt', true);
|
421 |
enable('btnSend');
|
|
|
422 |
$('encStatus').textContent = 'Your text is encrypted 🔒';
|
|
|
423 |
} else if (e.data.type === 'error') {
|
424 |
console.error('[Main] Encryption error:', e.data.error);
|
425 |
show('encryptSpin', false);
|
|
|
419 |
show('encIcon', true);
|
420 |
enable('btnEncrypt', true);
|
421 |
enable('btnSend');
|
422 |
+
enable('btnDecrypt', false);
|
423 |
$('encStatus').textContent = 'Your text is encrypted 🔒';
|
424 |
+
$('decResult').textContent = '';
|
425 |
} else if (e.data.type === 'error') {
|
426 |
console.error('[Main] Encryption error:', e.data.error);
|
427 |
show('encryptSpin', false);
|