Fixed nonexistent level comments not loading
This commit is contained in:
parent
b8201569ca
commit
f53b4790a2
1 changed files with 4 additions and 2 deletions
|
@ -160,7 +160,9 @@ function clean(text) {return text.replace(/&/g, "&").replace(/</g, "<").
|
|||
|
||||
$('#compactMode').attr('src', `../assets/compact-${compact ? "on" : "off"}.png`)
|
||||
|
||||
Fetch(target).then(lvl => {
|
||||
Fetch(target).then(lvl => buildComments(lvl)).catch(e => buildComments({}))
|
||||
|
||||
function buildComments(lvl) {
|
||||
|
||||
if (gdps) {
|
||||
$('#leaveComment').hide()
|
||||
|
@ -533,7 +535,7 @@ $(document).keydown(function(k) {
|
|||
}
|
||||
});
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in a new issue