middag-react
    Preparing search index...

    Function initHostHeaderHeight

    • Initialize host header height detection.

      Call once from your production entry point (or from ProductShell mount). Sets --host-header-height immediately, then observes resize + DOM mutations.

      Safe to call in dev/mock (returns 0 if no host header is found). Idempotent (calling multiple times does not stack observers).

      Returns void