aboutsummaryrefslogtreecommitdiff
path: root/uploader
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-12-20 12:35:20 -0600
committerFrederick Muriuki Muriithi2024-12-20 12:35:20 -0600
commit40727f25e46cb956fafacbb2a139ce30a1679523 (patch)
tree6bad6547008f2721df73c5c93edac44d734e8951 /uploader
parentbb85bfe307231a3082681ff3ececb331a56b0bdc (diff)
downloadgn-uploader-40727f25e46cb956fafacbb2a139ce30a1679523.tar.gz
Retain a consistent naming scheme for functions.
* Create a temporary fix to bridge the change.
Diffstat (limited to 'uploader')
-rw-r--r--uploader/static/js/files.js3
1 files changed, 2 insertions, 1 deletions
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;