fix: share now shares what's visible instead of active

This commit is contained in:
Felix Roos 2024-03-12 08:38:11 +01:00
parent d0c68e91dc
commit 7eb2f7659e

View File

@ -210,7 +210,7 @@ export function Repl({ embedded = false }) {
editorRef.current.repl.evaluate(code);
};
const handleShare = async () => shareCode(activeCode);
const handleShare = async () => shareCode(replState.code);
const context = {
embedded,
started,