Skip to content

Commit

Permalink
fix: wrongly highlight perceptor tab (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxharry authored Apr 5, 2023
1 parent 11da68b commit 974517b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/ContentScripts/features/perceptor-tab/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const addPerceptorTab = async (): Promise<void | false> => {
}
const perceptorTab = insightsTab.cloneNode(true) as HTMLAnchorElement;
delete perceptorTab.dataset.selectedLinks;
perceptorTab.removeAttribute('aria-current')
perceptorTab.classList.remove('selected');
const perceptorHref = `${insightsTab.href}?redirect=perceptor`;
perceptorTab.href = perceptorHref;
perceptorTab.id = featureId;
Expand Down

0 comments on commit 974517b

Please sign in to comment.