Skip to content

Commit

Permalink
utils/Config: add desktop flag
Browse files Browse the repository at this point in the history
  • Loading branch information
nl0 committed Nov 1, 2022
1 parent a42f27f commit b38a3ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions catalog/app/utils/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export interface ConfigJson {
serviceBucket: string
ssoAuth: AuthMethodConfig
ssoProviders: string
desktop?: boolean
build_version?: string // not sure where this comes from
}

Expand Down Expand Up @@ -81,8 +82,7 @@ const transformConfig = (cfg: ConfigJson) => ({
binaryApiGatewayEndpoint: startWithOrigin(cfg.binaryApiGatewayEndpoint),
noDownload: !!cfg.noDownload,
noOverviewImages: !!cfg.noOverviewImages,
// XXX: there's no such field in the schema, so it will be stripped from the config when present
desktop: !!(cfg as any).desktop,
desktop: !!cfg.desktop,
})

const getConfig = (input: unknown) => {
Expand Down

0 comments on commit b38a3ac

Please sign in to comment.