mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: sidebar navigation reset for github (#292)
fix #279 Co-authored-by: arlen.dp <arlen.dp@alibaba-inc.com>
This commit is contained in:
parent
a3cbf7587d
commit
8503595efd
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ export function isInRepoPage() {
|
|||
}
|
||||
|
||||
export function isInCodePage() {
|
||||
const branchListSelector = ['#branch-select-menu', '.branch-select-menu'].join()
|
||||
const branchListSelector = ['#branch-select-menu', '.branch-select-menu', 'button[id^=branch-picker]'].join()
|
||||
// The element may still exist in DOM for PR pages, but not visible
|
||||
return Boolean($(branchListSelector, e => e.offsetWidth > 0 && e.offsetHeight > 0))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue