Skip to content

Commit

Permalink
fix(SDK): fix sdk prefill
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemhosny committed Oct 20, 2023
1 parent 9e947a6 commit 948f69e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sdk/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,10 @@ if (
//
}
}
const dom = encodeURIComponent(codeblock.outerHTML);
codeblock.innerHTML = '';
createPlayground(codeblock, {
import: 'dom/' + encodeURIComponent(codeblock.outerHTML),
import: 'dom/' + dom,
...options,
...(config ? { config } : {}),
});
Expand Down

0 comments on commit 948f69e

Please sign in to comment.