fix: share now shares what's visible instead of active
This commit is contained in:
parent
d0c68e91dc
commit
7eb2f7659e
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue