Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jiyanbin committed Mar 25, 2024
1 parent c2e0a1b commit a5ca923
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,11 @@
})
const run = async (file) => {
/* replace with the URL of the file */
const URL_TO_DOWNLOAD = "https://sheetjs.com/pres.numbers";
const ab = await file.arrayBuffer();

/* Parse file and get first worksheet */
const wb = XLSX.read(ab);
const wsname = wb.SheetNames[0];
const ws = wb.Sheets[wsname];

/* Generate HTML */
var output = document.getElementById("TableContainer");
output.innerHTML = XLSX.utils.sheet_to_html(ws);
Expand Down

0 comments on commit a5ca923

Please sign in to comment.