We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ce7a8f commit 27bb094Copy full SHA for 27bb094
packages/app/src/embed/components/Content/index.tsx
@@ -420,8 +420,17 @@ export default class Content extends React.PureComponent<Props, State> {
420
}
421
422
423
- if (expandDevTools) {
424
- views[1].open = true;
+ /**
+ We can't make assumptions about the default value
425
+ of open because it's loaded from common/templates.
426
+
427
+ Example: server templates have devTools open by default
428
429
+ If the user wants to override the default, they can
430
+ do that by using the explicit flag.
431
+ */
432
+ if (typeof expandDevTools !== 'undefined') {
433
+ views[1].open = expandDevTools;
434
435
436
const browserConfig: IViewType = {
0 commit comments