From 718cfbafeeabed7b58e65ae7a17f0918f729ca9c Mon Sep 17 00:00:00 2001 From: Kai Labusch Date: Thu, 19 Dec 2019 14:58:50 +0100 Subject: [PATCH] fix #35 --- neath.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/neath.js b/neath.js index aa1e292..4c749c1 100644 --- a/neath.js +++ b/neath.js @@ -41,7 +41,7 @@ function loadFile(evt, onComplete) { escapeChar: String.fromCharCode(0), comments: "#", skipEmptyLines: true, - dynamicTyping: true, + dynamicTyping: false, complete: function(results) { onComplete(results, file, urls); } }); } @@ -130,10 +130,10 @@ function setupInterface(data, file, urls) { if (img_url == "http://empty") return - let left = data.data[nRow]['left']; - let right = data.data[nRow]['right']; - let top = data.data[nRow]['top']; - let bottom = data.data[nRow]['bottom']; + let left = parseInt(data.data[nRow]['left']); + let right = parseInt(data.data[nRow]['right']); + let top = parseInt(data.data[nRow]['top']); + let bottom = parseInt(data.data[nRow]['bottom']); top = Math.max(0, top - 25); bottom = bottom + 25;