Skip to content

Commit 4071c0f

Browse files
committed
fix(jira): Fix project ojn single page task
1 parent 0f14456 commit 4071c0f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules/
2+
.idea/

src/content/atlassian.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ function getProject () {
126126
}
127127
}
128128

129-
projectElement = $('[data-test-id="issue.views.issue-base.foundation.breadcrumbs.breadcrumb-current-issue-container"]');
130-
129+
projectElement = $('[data-test-id="issue.views.issue-base.foundation.breadcrumbs.breadcrumb-current-issue-container"]') || $('[data-testid="issue.views.issue-base.foundation.breadcrumbs.project.container"]')
131130
if (projectElement) {
132131
const projectWrapper = projectElement.parentElement.querySelector('a[href*="browse"] span + span');
133132
return projectWrapper ? projectWrapper.textContent.trim() : '';

0 commit comments

Comments
 (0)