Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pxtlib/shell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ namespace pxt.shell {
(isControllerMode() && editorReadonly));
}

export function hideOrganizationLogos() {
return /[?&]hidelogos=1/i.test(window.location.href);
}

export function isNoProject() {
return noDefaultProject;
}
Expand Down
4 changes: 2 additions & 2 deletions webapp/src/headerbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class HeaderBar extends data.Component<ISettingsProps, {}> {
}

getOrganizationLogo(targetTheme: pxt.AppTheme, highContrast?: boolean, view?: string) {
if (view === "time-machine") {
if (view === "time-machine" || pxt.shell.hideOrganizationLogos()) {
return <></>;
}

Expand All @@ -127,7 +127,7 @@ export class HeaderBar extends data.Component<ISettingsProps, {}> {
}

getTargetLogo(targetTheme: pxt.AppTheme, highContrast?: boolean, view?: string) {
if (view === "time-machine") {
if (view === "time-machine" || pxt.shell.hideOrganizationLogos()) {
return <></>;
}

Expand Down
Loading