Won't freeze anymore if you delete the prompt

This commit is contained in:
Gnome Ann 2021-08-24 11:24:29 -04:00
parent 7059c18f70
commit 90e558cf3f
2 changed files with 3 additions and 0 deletions

View File

@ -1429,6 +1429,8 @@ def inlinedelete(chunk):
# Don't delete prompt
if(chunk == 0):
# Send error message
refresh_story()
emit('from_server', {'cmd': 'errmsg', 'data': "Cannot delete the prompt."})
emit('from_server', {'cmd': 'editmode', 'data': 'false'}, broadcast=True)
else:
del vars.actions[chunk-1]

View File

@ -852,6 +852,7 @@ $(document).ready(function(){
}, 5);
}
newly_loaded = false;
hideMessage();
} else if(msg.cmd == "scrolldown") {
setTimeout(function () {
$('#gamescreen').animate({scrollTop: $('#gamescreen').prop('scrollHeight')}, 1000);