Fix var not updating

This commit is contained in:
kwaroran
2024-04-10 12:16:00 +09:00
parent 1d368ddc3c
commit 408bbbd2e6
3 changed files with 12 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
<script lang="ts">
import { ParseMarkdown, risuChatParser } from "src/ts/parser";
import { DataBase, type Database, type character, type groupChat } from "src/ts/storage/database";
import { selectedCharID } from "src/ts/stores";
import { CurrentVariablePointer, selectedCharID } from "src/ts/stores";
import { onDestroy } from "svelte";
let backgroundHTML = ''
@@ -42,7 +42,7 @@
{#if backgroundHTML}
{#key currentChar}
{#key $CurrentVariablePointer}
<div class="absolute top-0 left-0 w-full h-full">
{#await ParseMarkdown(risuChatParser(backgroundHTML, {chara:currentChar}), currentChar, 'back') then md}
{@html md}