diff --git a/HKCheckCompletion.js b/HKCheckCompletion.js index 6091deb..f0f51ee 100644 --- a/HKCheckCompletion.js +++ b/HKCheckCompletion.js @@ -384,7 +384,7 @@ function HKReadTextArea() { let textAreaId = "save-area"; let contents = document.getElementById(textAreaId).value; - if(contents.length > 0) { + if(contents.length) { let jsonObj = JSON.parse(contents); HKCheckCompletion(jsonObj); // console.log(jsonObj); diff --git a/index.html b/index.html index e08feac..663e190 100644 --- a/index.html +++ b/index.html @@ -5,14 +5,14 @@ -