We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47bd585 commit a5c9781Copy full SHA for a5c9781
src/common/url.js
@@ -26,10 +26,15 @@ export const getSandboxOptions = (url: string) => {
26
27
result.isPreviewScreen = url.includes('view=preview');
28
result.isEditorScreen = url.includes('view=editor');
29
+ result.isSplitScreen = url.includes('view=split');
30
31
// If there is no view specified and the width of the window is <800 we want
32
// to default to preview
- if (!result.isPreviewScreen && !result.isEditorScreen) {
33
+ if (
34
+ !result.isPreviewScreen &&
35
+ !result.isEditorScreen &&
36
+ !result.isSplitScreen
37
+ ) {
38
const windowWidth =
39
window.innerWidth || document.documentElement.clientWidth;
40
result.isPreviewScreen = windowWidth < 800;
0 commit comments