Fix for doing a ctrl+a when in the game area but not on any chunk not syncing

This commit is contained in:
ebolam
2023-04-21 15:18:48 -04:00
parent 83be223426
commit 98e4ed33d0

View File

@@ -3097,6 +3097,7 @@ function gametextwatcher(records) {
game_text.append(chunk);
}
chunk.classList.add("dirty");
did_deletes = true;
} else {
//For some reason we've deleted a chunk but it still exists in the DOM. Something is wrong here
//Seems to loose the events on the item, but otherwise is OK. DEPLOY HACK!!!
@@ -3128,6 +3129,9 @@ function gametextwatcher(records) {
}
}
}
if (did_deletes) {
savegametextchanges();
}
}
function savegametextchanges() {