mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
Update DOMHelper.ts
This commit is contained in:
parent
2542ccbeb7
commit
1ed0db0c65
1 changed files with 2 additions and 2 deletions
|
|
@ -7,8 +7,8 @@ import { CopyFileButton, copyFileButtonClassName } from './CopyFileButton'
|
|||
|
||||
export function resolveMeta(): Partial<MetaData> {
|
||||
const metaData = {
|
||||
userName: $('[itemprop="author"]', e => e.textContent?.trim()),
|
||||
repoName: $('[itemprop="name"]', e => e.textContent?.trim()),
|
||||
userName: $('[itemprop="author"] > a[rel="author"]]', e => e.textContent?.trim()),
|
||||
repoName: $('[itemprop="name"] > a[href]', e => e.textContent?.trim()),
|
||||
branchName: getCurrentBranch(true),
|
||||
}
|
||||
if (!metaData.userName || !metaData.repoName) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue