Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit 61ef43f

Browse files
committed
fix(packages/core): set inBrowser for bootIntoSandbox flows
Fixes #3840
1 parent 0776df7 commit 61ef43f

File tree

1 file changed

+5
-3
lines changed
  • packages/core/src/webapp/bootstrap

1 file changed

+5
-3
lines changed

packages/core/src/webapp/bootstrap/boot.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ export default async (renderMain: ClientRender) => {
9494
}
9595

9696
/** For booting into an external browser sandbox, such as codesandbox.io */
97-
export function bootIntoSandbox() {
98-
import('./init').then(_ => _.preinit())
99-
domReady()
97+
export async function bootIntoSandbox() {
98+
const { setMedia, Media } = await import('../../core/capabilities')
99+
setMedia(Media.Browser)
100+
await import('./init').then(_ => _.preinit())
101+
await domReady()
100102
}

0 commit comments

Comments
 (0)