mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-03-30 14:45:52 +00:00
fix: remove 'Scan with MeshCore app' text from all QR codes
This commit is contained in:
@@ -219,7 +219,7 @@
|
||||
const qr = qrcode(0, 'M');
|
||||
qr.addData(meshcoreUrl);
|
||||
qr.make();
|
||||
qrFullEl.innerHTML = `<div style="font-size:11px;color:var(--text-muted);margin-bottom:4px">Scan with MeshCore app to add contact</div>` + qr.createSvgTag(3, 0);
|
||||
qrFullEl.innerHTML = qr.createSvgTag(3, 0);
|
||||
const svg = qrFullEl.querySelector('svg');
|
||||
if (svg) { svg.style.display = 'block'; svg.style.margin = '0 auto'; }
|
||||
} catch {}
|
||||
@@ -594,7 +594,7 @@
|
||||
qr.addData(meshcoreUrl);
|
||||
qr.make();
|
||||
const isOverlay = !!qrEl.closest('.node-map-qr-overlay');
|
||||
qrEl.innerHTML = (isOverlay ? '' : `<div style="font-size:11px;color:var(--text-muted);margin-bottom:4px">Scan with MeshCore app to add contact</div>`) + qr.createSvgTag(3, 0);
|
||||
qrEl.innerHTML = qr.createSvgTag(3, 0);
|
||||
const svg = qrEl.querySelector('svg');
|
||||
if (svg) {
|
||||
svg.style.display = 'block'; svg.style.margin = '0 auto';
|
||||
|
||||
Reference in New Issue
Block a user