From f53b4790a2eb9b44f325dd15c682a1f91b5abc85 Mon Sep 17 00:00:00 2001 From: GDColon Date: Thu, 23 Dec 2021 23:55:20 -0500 Subject: [PATCH] Fixed nonexistent level comments not loading --- html/comments.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/html/comments.html b/html/comments.html index 9bdd84b..0b87550 100644 --- a/html/comments.html +++ b/html/comments.html @@ -160,7 +160,9 @@ function clean(text) {return text.replace(/&/g, "&").replace(/ { +Fetch(target).then(lvl => buildComments(lvl)).catch(e => buildComments({})) + +function buildComments(lvl) { if (gdps) { $('#leaveComment').hide() @@ -533,7 +535,7 @@ $(document).keydown(function(k) { } }); -}); +};