mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 10:58:10 +00:00
* feat(browser): guard page commands with an expected URL * fix(browser): refuse an empty --expect-url and check it on dialogs and the forwarding desktop * fix(browser): recheck the expected URL right before keys go out * refactor(browser): drop duplicate session type, dialog alias and per-capability sidecar fields * chore(browser): satisfy the changed-code gates for the expected URL guard
11 lines
243 B
TypeScript
11 lines
243 B
TypeScript
// Keep this error independent of Electron so Node hosts can load the runtime.
|
|
export class BrowserError extends Error {
|
|
constructor(
|
|
readonly code: string,
|
|
message: string,
|
|
readonly data?: unknown
|
|
) {
|
|
super(message)
|
|
}
|
|
}
|