Skip to content

Commit 997a542

Browse files
committed
fix
1 parent aa938cd commit 997a542

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/repl/src/lib/Output/Viewer.svelte

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
export let theme: 'light' | 'dark';
2929
/** A store containing the current bundle result. Takes precedence over REPL context, if set */
3030
export let bundle: Writable<Bundle | null> | undefined = undefined;
31+
/** Called everytime a log is pushed. If this is set, the built-in console coming with the Viewer isn't shown */
32+
export let onLog: ((logs: Log[]) => void) | undefined = undefined;
3133
3234
const context = get_repl_context();
3335
bundle = bundle ?? context.bundle;
@@ -109,10 +111,6 @@
109111
await proxy?.eval(`
110112
${injectedJS}
111113
112-
const chobitsu_scr = document.createElement('script');
113-
chobitsu_scr.src = 'https://cdn.jsdelivr.net/npm/chobitsu';
114-
document.body.appendChild(chobitsu_scr);
115-
116114
if (!window.__setup_focus_handling) {
117115
let can_focus = false;
118116

0 commit comments

Comments
 (0)