Skip to content

Commit ead5ef3

Browse files
Don't add Gitpod button when native Gitpod button is visible
1 parent 3842552 commit ead5ef3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/injectors/gitlab-injector.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ class RepositoryInjector implements ButtonInjector {
5050

5151
isApplicableToCurrentPage(): boolean {
5252
const result = !!select.exists(RepositoryInjector.PARENT_SELECTOR)
53-
&& !!select.exists(".project-clone-holder");
53+
&& !!select.exists(".project-clone-holder")
54+
&& !select.exists('[data-qa-selector="gitpod_button"]');
5455
return result;
5556
}
5657

0 commit comments

Comments
 (0)