From 3aab78cb02c2d0f87a7177a65124a29e206c25b6 Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Tue, 20 Feb 2024 14:37:47 -0800 Subject: [PATCH 1/2] Fix file listing for CP 9 --- js/common/web-file-transfer.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/js/common/web-file-transfer.js b/js/common/web-file-transfer.js index 30cd879..cfedb9d 100644 --- a/js/common/web-file-transfer.js +++ b/js/common/web-file-transfer.js @@ -131,12 +131,16 @@ class FileTransferClient { const response = await this._fetch(`/fs${path}`, {headers: {"Accept": "application/json"}}); const results = await response.json(); - for (let result of results) { + let listings = results + if (results.files !== undefined) { + listings = results.files; + } + for (let listing of listings) { contents.push({ - path: result.name, - isDir: result.directory, - fileSize: result.file_size, - fileDate: Number(result.modified_ns / 1000000), + path: listing.name, + isDir: listing.directory, + fileSize: listing.file_size, + fileDate: Number(listing.modified_ns / 1000000), }); } From 583372140e4e1879230d1435e91d6017d791823f Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Wed, 21 Feb 2024 10:16:35 -0800 Subject: [PATCH 2/2] Clicking board info opens new tab --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index f1adbab..b345ee6 100644 --- a/index.html +++ b/index.html @@ -312,7 +312,7 @@

Select USB Host Folder

Board: - + Version: