From 42a1157e81d87595f1be85758b3e76b47fac14aa Mon Sep 17 00:00:00 2001 From: ebolam Date: Fri, 21 Apr 2023 14:53:46 -0400 Subject: [PATCH] Potential race condition fix --- static/koboldai.css | 3 +++ static/koboldai.js | 1 - templates/index_new.html | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/static/koboldai.css b/static/koboldai.css index 94efb352..230f1cbf 100644 --- a/static/koboldai.css +++ b/static/koboldai.css @@ -3680,4 +3680,7 @@ select { text-decoration: underline dotted; } +.dirty { + text-decoration: underline dotted red; +} diff --git a/static/koboldai.js b/static/koboldai.js index 1b95c02a..83880952 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -44,7 +44,6 @@ initalizeTooltips(); //setup an observer on the game text var chunk_delete_observer = new MutationObserver(function (records) {gametextwatcher(records)}); -chunk_delete_observer.observe(document.getElementById('Selected Text'), { subtree: true, childList: true, characterData: true }); var vars_sync_time = {}; var presets = {}; diff --git a/templates/index_new.html b/templates/index_new.html index 2b8bb59b..173e228d 100644 --- a/templates/index_new.html +++ b/templates/index_new.html @@ -27,7 +27,7 @@ - +