Skip to content

Commit 12d5a1a

Browse files
committed
Fix some missing "async"s in README examples
1 parent fcba0d4 commit 12d5a1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ This would give your users an experience most like a multi-page application, whe
562562
To perform a rollback to where the user was previously, with a toast notification, you could do something like:
563563

564564
```js
565-
appHistory.addEventListener("navigateerror", e => {
565+
appHistory.addEventListener("navigateerror", async e => {
566566
const attemptedURL = location.href;
567567
568568
await appHistory.transition.rollback();
@@ -697,7 +697,7 @@ document.addEventListener("keydown", async e => {
697697
}
698698
});
699699
700-
photoGallery.addEventListener("click", e => {
700+
photoGallery.addEventListener("click", async e => {
701701
if (e.target.closest(".photo-thumbnail")) {
702702
await appHistory.navigate(getPhotoURL(e.target), { navigateInfo: { via: "gallery", thumbnail: e.target } });
703703
}

0 commit comments

Comments
 (0)