diff options
[checklist] Added auto importing on page load and parse doesn't error out if str is null or undefined
1 files changed, 3 insertions, 0 deletions
| -rw-r--r-- | checklist.html | 3 |
diff --git a/checklist.html b/checklist.html index e92827e..89173a1 100644 --- a/checklist.html +++ b/checklist.html @@ -195,6 +195,7 @@ input { } function parse(str, par, i) { + if (!str) return; if (!i) i = 0; var text = ""; @@ -262,6 +263,8 @@ input { url.searchParams.set('list', expImpText.value); history.pushState(null, '', url); } + + document.getElementById('import-btn').click(); </script> </body> </html> |