From 9cc0f70b4eb27c438b87c11287f4deafc6e0360b Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 23 Dec 2022 12:25:39 +0200 Subject: [checklist] Added auto importing on page load and parse doesn't error out if str is null or undefined --- checklist.html | 3 +++ 1 file changed, 3 insertions(+) (limited to 'checklist.html') 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(); -- cgit v1.3.1-26-gb76a