Skip to content

Commit 58feb85

Browse files
committed
feat: intergrate chii into playground
1 parent 9c00fbd commit 58feb85

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@
165165
const { mount, unmount, App } = __repl_exports;
166166
167167
168-
window.initialize = (target_src) => {
168+
window.initialize = () => {
169169
var script = document.createElement('script');
170-
script.src = target_src;
170+
script.src = 'https://cdn.jsdelivr.net/npm/[email protected]/public/target.js';
171171
script.setAttribute('embedded', 'true');
172172
script.setAttribute('cdn', 'https://cdn.jsdelivr.net/npm/chii/public');
173173
document.head.appendChild(script);
@@ -182,7 +182,7 @@
182182
};
183183
184184
setTimeout(() => {
185-
window.dispatchEvent(new Event('devtools_ready'));
185+
window.dispatchEvent(new Event('preview_ready'));
186186
}, 0);
187187
}
188188
//# sourceURL=playground:output

0 commit comments

Comments
 (0)