Skip to content

Commit

Permalink
Change session.elementDriveEnabled() to `session.elementIsNavigatab…
Browse files Browse the repository at this point in the history
…le()` (#656)

The Pull Request #648 refactored the function name of
`session.elementDriveEnabled()` to `session.elementIsNavigatable()`.

This Pull Request fixes an old function reference which kept the library
from building successfully.
  • Loading branch information
marcoroth authored Jul 29, 2022
1 parent 4450843 commit c4d9b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export class Session
// Form click observer delegate

willSubmitFormLinkToLocation(link: Element, location: URL): boolean {
return this.elementDriveEnabled(link) && locationIsVisitable(location, this.snapshot.rootLocation)
return this.elementIsNavigatable(link) && locationIsVisitable(location, this.snapshot.rootLocation)
}

submittedFormLinkToLocation() {}
Expand Down

0 comments on commit c4d9b00

Please sign in to comment.