kernl API
    Preparing search index...

    Function domainsInForce

    • The domains actually in force for an applet: the baseline plus what the person allowed, cut down to MESSAGE_COMPANION_DOMAINS when the applet holds messages. A domain the person chose to keep beside messages stays (D-060): kept is theirs alone, never an applet's, and frees one domain at a time.

      Parameters

      • granted: readonly string[]

        The domains the person allowed.

      • baseline: readonly string[] = BASELINE_DOMAINS

        Domains every applet holds; BASELINE_DOMAINS by default.

      • kept: readonly string[] = []

        Domains the person chose to keep beside messages.

      Returns readonly string[]

      The domains in force, baseline first.

      domainsInForce(['relay']); // ['shell', 'inc', 'theme', 'storage', 'keys', 'relay']
      domainsInForce(['dm', 'relay', 'upload']); // ['shell', 'theme', 'storage', 'keys', 'dm']
      domainsInForce(['dm', 'relay', 'upload'], undefined, ['upload']); // [..., 'dm', 'upload']