fix: code block execution

This commit is contained in:
Timothy J. Baek 2024-05-19 05:16:31 -07:00
parent d2249921aa
commit 78cbdbc63f

View File

@ -286,7 +286,7 @@ __builtins__.input = input`);
<div class="p-1">{@html lang}</div>
<div class="flex items-center">
{#if lang === 'python' || checkPythonCode(code)}
{#if ['', 'python'].includes(lang) && (lang === 'python' || checkPythonCode(code))}
{#if executing}
<div class="copy-code-button bg-none border-none p-1 cursor-not-allowed">Running</div>
{:else}