Skip to content

Commit

Permalink
Update files/en-us/web/api/window/pagereveal_event/index.md
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
chrisdavidmills and github-actions[bot] committed May 24, 2024
1 parent 7f84898 commit c97f061
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions files/en-us/web/api/window/pagereveal_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,13 @@ window.addEventListener("pagereveal", async (e) => {
if (isProfilePage(fromUrl) && isHomePage(currentUrl)) {
const profile = extractProfileNameFromUrl(fromUrl);

setTemporaryViewTransitionNames([
[document.querySelector(`#${profile} span`), 'name'],
[document.querySelector(`#${profile} img`), 'avatar'],
], e.viewTransition.ready);
setTemporaryViewTransitionNames(
[
[document.querySelector(`#${profile} span`), "name"],
[document.querySelector(`#${profile} img`), "avatar"],
],
e.viewTransition.ready,
);
}

// Went to profile page
Expand Down

0 comments on commit c97f061

Please sign in to comment.