@playlive/realtime-pipeline
    Preparing search index...

    Function isDemoMode

    • 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.

      if (isDemoMode("@playliveDemoUser", "playliveDemoCampaign")) {
      return getDemoCampaign(false);
      }