From 40727f25e46cb956fafacbb2a139ce30a1679523 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 20 Dec 2024 12:35:20 -0600 Subject: Retain a consistent naming scheme for functions. * Create a temporary fix to bridge the change. --- uploader/static/js/files.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'uploader/static/js/files.js') diff --git a/uploader/static/js/files.js b/uploader/static/js/files.js index c1dedad..017ea3e 100644 --- a/uploader/static/js/files.js +++ b/uploader/static/js/files.js @@ -1,4 +1,4 @@ -var read_first_n_lines = (fileelement, count, process_content_fns) => { +var readFirstNLines = (fileelement, count, process_content_fns) => { var thefile = fileelement.files[0]; var reader = new FileReader(); if(typeof thefile !== "undefined" && thefile !== null) { @@ -14,3 +14,4 @@ var read_first_n_lines = (fileelement, count, process_content_fns) => { reader.readAsText(thefile); } }; +var read_first_n_lines = readFirstNLines; -- cgit v1.2.3