File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -45,11 +45,12 @@ export function parseIssueNewHref(href: string): IssuePathInfo {
45
45
46
46
export function parseIssuePageInfo ( ) : IssuePageInfo {
47
47
const el = document . querySelector ( '#issue-page-info' ) ;
48
- const info = { } as IssuePageInfo ;
49
- info . issueNumber = parseInt ( el ?. getAttribute ( 'data-issue-index' ) ) ;
50
- info . issueDependencySearchType = el ?. getAttribute ( 'data-issue-dependency-search-type' ) || '' ;
51
- info . repoId = parseInt ( el ?. getAttribute ( 'data-issue-repo-id' ) ) ;
52
- info . repoLink = el ?. getAttribute ( 'data-issue-repo-link' ) || '' ;
48
+ const info : IssuePageInfo = {
49
+ issueNumber : parseInt ( el ?. getAttribute ( 'data-issue-index' ) ) ;
50
+ issueDependencySearchType: el ?. getAttribute ( 'data-issue-dependency-search-type' ) || '' ;
51
+ repoId: parseInt ( el ?. getAttribute ( 'data-issue-repo-id' ) ) ;
52
+ repoLink: el ?. getAttribute ( 'data-issue-repo-link' ) || '' ;
53
+ }
53
54
return info ;
54
55
}
55
56
You can’t perform that action at this time.
0 commit comments