Summary Files Commits Branches @commit @diff @stats
path: root / checklist.html
diff options
context:
space:
mode:
Commit9cc0f70b4eb27c438b87c11287f4deafc6e0360b (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-12-23 12:25:39 +0200
Committer
 Syndamia <kamen@syndamia.com>
2022-12-23 12:25:39 +0200
Filesb8c07560b24e44ef4d16c6cd838b11a9fdc7c032 /checklist.html
small-web-utilities-9cc0f70b4eb27c438b87c11287f4deafc6e0360b.tar
small-web-utilities-9cc0f70b4eb27c438b87c11287f4deafc6e0360b.tar.gz
small-web-utilities-9cc0f70b4eb27c438b87c11287f4deafc6e0360b.zip
Parent19ddf53e53d94432dde8325ba6c68094f3ca08f4 (diff)
[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.html3
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>