Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
skyclouds2001 authored Jan 6, 2025
1 parent 22a229a commit 7251916
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ A boolean value.
```js
window.addEventListener("popstate", (event) => {
// Fetch the new content
const newContent = await fetchNewContent(event.destination.url, {
signal: event.signal,
});
const newContent = await fetchNewContent(location.href);

// The UA does not support View Transitions, or the UA
// already provided a Visual Transition by itself (e.g. swipe back).
Expand Down

0 comments on commit 7251916

Please sign in to comment.