nguyenthanhasia commited on
Commit
54dda09
·
verified ·
1 Parent(s): ec258d5

Upload script.js with huggingface_hub

Browse files
Files changed (1) hide show
  1. script.js +2 -4
script.js CHANGED
@@ -198,9 +198,8 @@ class QRGenerator {
198
  await this.displayQRCode(qrUrl);
199
  this.currentQRUrl = qrUrl;
200
 
201
- // Enable action buttons
202
  document.getElementById('download-btn').disabled = false;
203
- document.getElementById('copy-btn').disabled = false;
204
 
205
  this.showToast('QR code generated successfully!', 'success');
206
  } catch (error) {
@@ -265,9 +264,8 @@ class QRGenerator {
265
  `;
266
  preview.classList.remove('has-qr');
267
 
268
- // Disable action buttons
269
  document.getElementById('download-btn').disabled = true;
270
- document.getElementById('copy-btn').disabled = true;
271
 
272
  this.currentQRUrl = null;
273
  }
 
198
  await this.displayQRCode(qrUrl);
199
  this.currentQRUrl = qrUrl;
200
 
201
+ // Enable download button
202
  document.getElementById('download-btn').disabled = false;
 
203
 
204
  this.showToast('QR code generated successfully!', 'success');
205
  } catch (error) {
 
264
  `;
265
  preview.classList.remove('has-qr');
266
 
267
+ // Disable download button
268
  document.getElementById('download-btn').disabled = true;
 
269
 
270
  this.currentQRUrl = null;
271
  }