From 9e817943acfb4c8a8b5824cd7a87a21a654a7fb1 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Thu, 7 Apr 2016 15:57:42 -0700 Subject: integrates photo uploading in the main note interface Quill corrects the photo rotation based on exif data since iOS tends to take landscape photos and set the rotation bit when holding it in portrait mode. --- public/js/script.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'public/js') diff --git a/public/js/script.js b/public/js/script.js index ea86931..50496d3 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -15,7 +15,11 @@ } function csv_to_array(val) { - return val.split(/[, ]+/); + if(val.length > 0) { + return val.split(/[, ]+/); + } else { + return []; + } } -- cgit v1.2.3