kernl API
    Preparing search index...

    Function answerFor

    • The answer kehto gets for the choice the person made. Dismissing the prompt, or naming a choice it did not offer, cancels the request without storing anything, so the applet may ask again.

      Parameters

      • summary: Pick<FirewallSummary, "choices">

        The summary the host was shown.

      • choice: FirewallChoice | undefined

        What the person chose, or undefined when they dismissed it.

      Returns ApprovalAnswer

      kehto's approval answer.

      answerFor(summary, 'allow-once'); // { effect: 'allow', lifetime: 'once' }
      answerFor(summary, undefined); // { effect: 'cancel' }