Check whether the given slugs match the demo user / team / campaign
pattern. Used by overlay routers to short-circuit network access
when running against demo content.
Parameters
userOrTeamSlug: string|null|undefined
User or team slug from the URL.
campaignSlug: string|null|undefined
Campaign slug from the URL (may be absent).
Returns boolean
true when the slugs identify a demo overlay.
Example
if (isDemoMode("@playliveDemoUser", "playliveDemoCampaign")) { returngetDemoCampaign(false); }
Check whether the given slugs match the demo user / team / campaign pattern. Used by overlay routers to short-circuit network access when running against demo content.