Skip to main content
Version: 1.x

Interface: NativeDialogRecord

One native dialog, as observed or answered.

Example​

const record: NativeDialogRecord = handler.records[0];
logger.info(record.type); // 'beforeunload'

Properties​

action​

readonly action: NativeDialogAction | "observed"

What was done. 'observed' means the dialog was not touched.


error?​

readonly optional error?: string

Message from a failed accept/dismiss, when one occurred.


handledBy​

readonly handledBy: string

Which rule answered it, or 'observed' when only watching, or 'unmatched' when a policy was active but no rule covered the type.


message​

readonly message: string

The dialog's message text.


type​

readonly type: string

The dialog type reported by the browser.