File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
packages/repl/src/lib/Output Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 55 import Message from ' ../Message.svelte' ;
66 import PaneWithPanel from ' ./PaneWithPanel.svelte' ;
77 import ReplProxy from ' ./ReplProxy.js' ;
8- import Console , { type Log } from ' ./console/Console.svelte' ;
8+ import { type Log } from ' ./console/Console.svelte' ;
99 import getLocationFromStack from ' ./get-location-from-stack' ;
1010 import srcdoc from ' ./srcdoc/index.html?raw' ;
1111 import ErrorOverlay from ' ./ErrorOverlay.svelte' ;
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 ;
3331
3432 const context = get_repl_context ();
3533 bundle = bundle ?? context .bundle ;
172170 }
173171 };
174172
175- if (!window.initialize ) {
176- window.initialize = () => {
173+ if (!window.initialize_devtools ) {
174+ window.initialize_devtools = () => {
177175 var script = document.createElement('script');
178176 script.src = 'https://cdn.jsdelivr.net/npm/[email protected] /public/target.js'; 179177 script.setAttribute('embedded', 'true');
Original file line number Diff line number Diff line change 88 const iframe_window = iframe .contentWindow ;
99 iframe_window .addEventListener (' preview_ready' , () => {
1010 iframe_window .ChiiDevtoolsIframe = devtools_iframe;
11- iframe_window .initialize ();
11+ iframe_window .initialize_devtools ();
1212 });
1313
1414 window .addEventListener (' message' , (event ) => {
You can’t perform that action at this time.
0 commit comments