From ad4b2a0a7cd5674565e1d643952dc2a4fa5f0ef2 Mon Sep 17 00:00:00 2001 From: Nathan Schneider Date: Thu, 18 Dec 2025 10:24:27 -0700 Subject: [PATCH] Removed redundant Share button --- .../src/components/ExportControls.svelte | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/bicorder-app/src/components/ExportControls.svelte b/bicorder-app/src/components/ExportControls.svelte index b501a16..8b7131a 100644 --- a/bicorder-app/src/components/ExportControls.svelte +++ b/bicorder-app/src/components/ExportControls.svelte @@ -33,30 +33,6 @@ URL.revokeObjectURL(url); } - async function shareResults() { - const json = JSON.stringify(data, null, 2); - const file = new File([json], `bicorder-${data.metadata.protocol || 'diagnostic'}.json`, { - type: 'application/json', - }); - - if (navigator.share && navigator.canShare && navigator.canShare({ files: [file] })) { - try { - await navigator.share({ - title: 'Protocol Bicorder Diagnostic', - text: `Diagnostic for: ${data.metadata.protocol || 'Protocol'}`, - files: [file], - }); - } catch (err) { - if ((err as Error).name !== 'AbortError') { - console.error('Share failed:', err); - alert('Share failed. Try using the Export button instead.'); - } - } - } else { - alert('Web Share API not supported. Use the Export button to download the file.'); - } - } - async function uploadReadings() { isUploading = true; @@ -128,12 +104,6 @@ 💾 Export JSON - {#if navigator.share} - - {/if} -