BundleProtocolConfig
Options shared by bundle and proxy protocol registrations.
Options shared by bundle and proxy protocol registrations.
Extends: ProtocolOptions, BundleProtocolOptions
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 });