diff --git a/src/lib/ChatScreens/BackgroundDom.svelte b/src/lib/ChatScreens/BackgroundDom.svelte index b647d9bf..162d22d3 100644 --- a/src/lib/ChatScreens/BackgroundDom.svelte +++ b/src/lib/ChatScreens/BackgroundDom.svelte @@ -1,7 +1,7 @@
@@ -228,13 +228,11 @@ style:font-size="{0.875 * ($DataBase.zoomsize / 100)}rem" style:line-height="{1.25 * ($DataBase.zoomsize / 100)}rem" > - {#key $CurrentVariablePointer} - {#await markParsing(msgDisplay, character, 'normal', idx, translated)} - {@html lastParsed} - {:then md} - {@html md} - {/await} - {/key} + {#await markParsing(msgDisplay, character, 'normal', idx, translated)} + {@html lastParsed} + {:then md} + {@html md} + {/await} {/if} diff --git a/src/ts/stores.ts b/src/ts/stores.ts index 1a149126..a85c6159 100644 --- a/src/ts/stores.ts +++ b/src/ts/stores.ts @@ -146,10 +146,11 @@ CurrentChat.subscribe((chat) => { } const variablePointer = get(CurrentVariablePointer) - const currentState = chat.scriptstate + const currentState = structuredClone(chat?.scriptstate) if(!isEqual(variablePointer, currentState)){ CurrentVariablePointer.set(currentState) + console.log(currentState) } })