From 985b929ac5a6d54af1efc6b6c8cc5ca7d7fb0fde Mon Sep 17 00:00:00 2001 From: Cooper Hammond Date: Mon, 1 Jun 2020 15:29:16 -0700 Subject: [PATCH] fix el definition compatibility in client.js The previous definition (using the `=>` syntax) would occasionally break the definition on certain browsers, notably for me, an older version of chrome. --- app/static/client.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/static/client.js b/app/static/client.js index 84c2c9541..dac54894c 100644 --- a/app/static/client.js +++ b/app/static/client.js @@ -1,4 +1,6 @@ -var el = x => document.getElementById(x); +function el(x) { + return document.getElementById(x); +} function showPicker() { el("file-input").click();