is-incognito-mode - v2.3.0
    Preparing search index...

    Type Alias IncognitoDetectionErrorCode

    IncognitoDetectionErrorCode:
        | "NOT_A_BROWSER"
        | "UNSUPPORTED_BROWSER"
        | "PROBE_FAILED"
        | "TIMEOUT"
        | "ABORTED"

    Stable identifiers for IncognitoDetectionError causes.

    Branching on code is safer than parsing message strings.

    Type Declaration

    • "NOT_A_BROWSER"

      Invoked in a non-browser context (Node, worker without globals, etc.).

    • "UNSUPPORTED_BROWSER"

      Browser detected but no supported detection strategy applies.

    • "PROBE_FAILED"

      A probe threw before it could produce a definitive result.

    • "TIMEOUT"

      Detection did not finish within the timeoutMs deadline.

    • "ABORTED"

      Detection was cancelled via the caller-supplied signal.