aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--main.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.js b/main.js
index e806ef5..6e13a88 100644
--- a/main.js
+++ b/main.js
@@ -1,5 +1,6 @@
/* Define the interpolate function */
-function interpolate(template, variables) {
+function interpolate(template, variables)
+{
return template.replace(/\${[^{]+}/g, (match) => {
const path = match.slice(2, -1).trim();
return variables[path];
@@ -135,7 +136,7 @@ function parse_time(event)
}
/* If cmt isn't available fallback to lct, also allow raw numbers */
- if (!(input = dinfo.cmt) && !(input = dinfo.lct) && typeof((input = dinfo)) !== "number") {
+ if (!(input = dinfo.cmt) && !(input = dinfo.lct) && typeof ((input = dinfo)) !== "number") {
document.getElementById(event.target.id).value = "";
return;
}