Update virtualscript handling for security reasons

This commit is contained in:
kwaroran
2024-04-10 11:13:51 +09:00
parent b1428e8593
commit 2c94228fbd
2 changed files with 6 additions and 4 deletions

View File

@@ -508,8 +508,10 @@
}
}}><PlusIcon /></button>
<span class="text-textcolor mt-4">{language.charjs} <Help key="charjs"/></span>
<TextAreaInput margin="both" autocomplete="off" bind:value={currentChar.data.virtualscript}></TextAreaInput>
{#if currentChar.data.virtualscript || $DataBase.showUnrecommended}
<span class="text-textcolor mt-4">{language.charjs} <Help key="charjs" unrecommended/></span>
<TextAreaInput margin="both" autocomplete="off" bind:value={currentChar.data.virtualscript}></TextAreaInput>
{/if}
{/if}
{:else if subMenu === 5}
{#if currentChar.type === 'character'}