aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMango0x45 <thomasvoss@live.com> 2021-05-16 20:57:02 +0200
committerMango0x45 <thomasvoss@live.com> 2021-05-16 20:57:02 +0200
commit3dab6cf2fac0a07e68714cf3c2225030c735d7c8 (patch)
tree6fff7156264a02a5d2525738642e41052660d7c9
parent8f0de5e1c983753ebf443fb2e5c7c1cad0a5f708 (diff)
Fix formatting
-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;
}