Skip to content

Commit 6feccd5

Browse files
Update examples/threejs-server/src/threejs-app.tsx
Co-authored-by: Jonathan Hefner <jonathan@hefner.pro>
1 parent 43da11c commit 6feccd5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/threejs-server/src/threejs-app.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ export default function ThreeJSApp({
229229

230230
// Sync display mode from host context
231231
useEffect(() => {
232-
if (hostContext?.displayMode) {
233-
setCurrentDisplayMode(hostContext.displayMode as "inline" | "fullscreen");
232+
if (hostContext?.displayMode === "inline" || hostContext?.displayMode === "fullscreen") {
233+
setCurrentDisplayMode(hostContext.displayMode);
234234
}
235235
}, [hostContext?.displayMode]);
236236

0 commit comments

Comments
 (0)