Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ const UPDATE = (state, url) => {
return state;
}

const link = url.target.closest('a[href]'),
const elements = url.composedPath();
const link = elements.find(el => el.tagName?.toLowerCase() === 'a' && el.href),
Comment thread
Jentob marked this conversation as resolved.
Outdated
href = link && link.getAttribute('href');
if (
!link ||
Expand Down