Update interface.html (debugging)

master
Elfreda Kwawu 2024-04-10 12:36:51 -04:00 committed by GitHub
parent 426d830fd7
commit 43d7d90386
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -25,12 +25,15 @@ function saveCSV(data, title) {
}
function downloadHeartRateData() {
console.log("starting download...");
Util.showModal("Downloading Heart Rate Data...");
Util.readStorageFile("heart_rate_data.csv", data => { // Read data from specified file
console.log("Data received: ", data);
Util.hideModal();
if (data) {
saveCSV(data, "Heart Rate Data");
} else {
console.log("no data in csv");
domContent.innerHTML = "<b>No heart rate data found</b>";
}
});