aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMango0x45 <thomasvoss@live.com> 2021-05-09 14:13:24 +0200
committerMango0x45 <thomasvoss@live.com> 2021-05-09 14:13:24 +0200
commitc50811bc2bd6168e52581113d9fdc5045068a4a7 (patch)
treeb58c9551c896c1f8e71e92a9e0517a07e82b4598
parent2bf919967114cb9fac4ffd1351ca53d438dfb3dd (diff)
Fix NaN bug
-rw-r--r--main.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.js b/main.js
index 5fa8acf..ae7f1d3 100644
--- a/main.js
+++ b/main.js
@@ -22,8 +22,8 @@ function compute()
const s_frame = Math.trunc(s_time * fps);
const e_frame = Math.trunc(e_time * fps);
const time = time_format(seconds);
- const mod_message = `Mod Note: Retimed (Start Frame: ${s_frame}, End Frame: ${e_frame}, FPS: ${
- fps}, Total Time: ${time})`;
+ const mod_message = `Mod Note: Retimed (Start Frame: ${s_frame}, End Frame: ${
+ e_frame}, FPS: ${fps}, Total Time: ${time})`;
document.getElementById("time").value = time;
document.getElementById("mod_message").disabled = false;
@@ -86,7 +86,7 @@ function parse_time(event)
}
/* If cmt isn't available fallback to lct, also allow raw numbers */
- if (!(inp = dinfo.cmt) && !(inp = dinfo.lct) && typeof ((inp = dinfo)) !== "number") {
+ if (!(input = dinfo.cmt) && !(input = dinfo.lct) && typeof ((input = dinfo)) !== "number") {
document.getElementById(event.target.id).value = "";
return;
}