Skip to content

Commit 3b6c00f

Browse files
authored
Merge pull request microsoft#209162 from grgars/grgar/209159
Don't use window.customTitleBarVisibility configuration on web
2 parents abb831f + f2d83f4 commit 3b6c00f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/vs/workbench/services/layout/browser/layoutService.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,11 @@ export function shouldShowCustomTitleBar(configurationService: IConfigurationSer
320320
const inFullscreen = isFullscreen(window);
321321
const nativeTitleBarEnabled = hasNativeTitlebar(configurationService);
322322

323-
const showCustomTitleBar = configurationService.getValue<CustomTitleBarVisibility>(TitleBarSetting.CUSTOM_TITLE_BAR_VISIBILITY);
324-
if (showCustomTitleBar === CustomTitleBarVisibility.NEVER && nativeTitleBarEnabled || showCustomTitleBar === CustomTitleBarVisibility.WINDOWED && inFullscreen) {
325-
return false;
323+
if (!isWeb) {
324+
const showCustomTitleBar = configurationService.getValue<CustomTitleBarVisibility>(TitleBarSetting.CUSTOM_TITLE_BAR_VISIBILITY);
325+
if (showCustomTitleBar === CustomTitleBarVisibility.NEVER && nativeTitleBarEnabled || showCustomTitleBar === CustomTitleBarVisibility.WINDOWED && inFullscreen) {
326+
return false;
327+
}
326328
}
327329

328330
if (!isTitleBarEmpty(configurationService)) {

0 commit comments

Comments
 (0)