overleaf-cep/services/web/frontend/js/utils/is-ieee-branded.ts
Tim Down e68d2e88e0 Merge pull request #22506 from overleaf/td-bs5-ieee-overall-theme-take-2
Always apply overall dark theme with IEEE-branded editor and tear down ieee-stylesheet feature flag, second attempt

GitOrigin-RevId: 311d125a77a46ee3f34769064005b6edea7ce013
2024-12-17 09:05:28 +00:00

8 lines
233 B
TypeScript

import getMeta from '@/utils/meta'
export function isIEEEBranded() {
const brandVariation = getMeta('ol-brandVariation')
const { ieeeBrandId } = getMeta('ol-ExposedSettings')
return brandVariation?.brand_id === ieeeBrandId
}