Skip to content

Commit

Permalink
Default initiator
Browse files Browse the repository at this point in the history
  • Loading branch information
domchristie committed Aug 25, 2022
1 parent 95590c4 commit 36dd97b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/drive/visit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export type VisitOptions = {
shouldCacheSnapshot: boolean
frame?: string
acceptsStreamResponse: boolean
initiator?: Element
initiator: Element
}

const defaultOptions: VisitOptions = {
Expand All @@ -62,6 +62,7 @@ const defaultOptions: VisitOptions = {
updateHistory: true,
shouldCacheSnapshot: true,
acceptsStreamResponse: false,
initiator: document.documentElement,
}

export type VisitResponse = {
Expand All @@ -87,7 +88,7 @@ export class Visit implements FetchRequestDelegate {
readonly willRender: boolean
readonly updateHistory: boolean
readonly promise: Promise<void>
readonly initiator?: Element
readonly initiator: Element

private resolvingFunctions!: ResolvingFunctions<void>

Expand Down

0 comments on commit 36dd97b

Please sign in to comment.