Prevent editing the "Welcome to KoboldAI!" message

This commit is contained in:
Gnome Ann 2021-09-27 17:55:54 -04:00
parent a327eed2c3
commit 09d540b580
1 changed files with 2 additions and 0 deletions

View File

@ -1088,6 +1088,8 @@ $(document).ready(function(){
changemode(); changemode();
} }
unbindGametext(); unbindGametext();
allowedit = gamestarted && $("#allowediting").prop('checked');
game_text.attr('contenteditable', allowedit);
modified_chunks = new Set(); modified_chunks = new Set();
empty_chunks = new Set(); empty_chunks = new Set();
game_text.html(msg.data); game_text.html(msg.data);