ProtocolOptions

Options shared by bundle and proxy protocol registrations.

Options shared by bundle and proxy protocol registrations.

View source ↗

Properties

Prop

Type

Methods

Prop

Type

Examples

errorResponse

import { isWebviewBundleError } from '@wvb/electron';

errorResponse: e =>
  isWebviewBundleError(e) && e.code === 'core.checksum_mismatch'
    ? new Response('bundle corrupted', { status: 502 })
    : new Response(e.message, { status: 500 });

On this page