From 04faf171a5833d5a341ac6f64e9f2caa213d8d47 Mon Sep 17 00:00:00 2001 From: Boorj Date: Mon, 17 May 2021 13:27:08 +0700 Subject: [PATCH] bugfix in worker.js --- js/worker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/worker.js b/js/worker.js index 29ef632..e91424e 100644 --- a/js/worker.js +++ b/js/worker.js @@ -29,7 +29,7 @@ function doConvert(input, config){ let sheetsData; if (config.sheet) { - const data = xlsx.get_sheet_data(sheet); + const data = xlsx.get_sheet_data(config.sheet); sheetsData = [data]; } else { const sheets = xlsx.get_sheets(); @@ -49,4 +49,4 @@ function doConvert(input, config){ doConvert(input, config); }).catch(e => console.log(e)); } -} \ No newline at end of file +}