diff options
| -rw-r--r-- | js/clipboard.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/js/clipboard.js b/js/clipboard.js index 0acc3c7..535e333 100644 --- a/js/clipboard.js +++ b/js/clipboard.js @@ -116,8 +116,11 @@ var clipboard = (function () { import_text: function () { var data = import_textarea.value lines = data.split("\n") - var width = lines.reduce(function(a,b){ return Math.max(a, b.length) }) + console.log(data) + console.log(lines) + var width = lines.reduce(function(a,b){ console.log(a,b); return Math.max(a, b.length) }, 0) var height = lines.length +console.log(width, height) if (width > 200) { return alert("input too wide") } |
