Skip to content

Commit

Permalink
Add isPrivateUserProfile (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
kidonng committed Jul 11, 2022
1 parent cf7ea99 commit f7cf628
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,8 @@ collect.set('isProfile', [

export const isUserProfile = (): boolean => isProfile() && !isOrganizationProfile();

export const isPrivateUserProfile = (): boolean => isUserProfile() && !exists('.user-following-container');

export const isUserProfileMainTab = (): boolean =>
isUserProfile()
&& !new URLSearchParams(location.search).has('tab');
Expand Down

0 comments on commit f7cf628

Please sign in to comment.