Skip to content

Commit

Permalink
clone-branch
Browse files Browse the repository at this point in the history
  • Loading branch information
yakov116 committed May 21, 2021
1 parent 463f9c2 commit 1183807
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions source/features/clone-branch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,8 @@ async function cloneBranch({delegateTarget: cloneButton}: delegate.Event): Promi

async function init(): Promise<void | false> {
await api.expectToken();
const deleteIconClass = [
'branch-filter-item-controller .octicon-trashcan', // Pre "Repository refresh" layout
'branch-filter-item .octicon-trash'
].join();

observe(deleteIconClass, {
observe('branch-filter-item .octicon-trash', {
add(deleteIcon) {
// Branches with open PRs use `span`, the others use `form`
deleteIcon.closest('form, span')!.before(
Expand Down

0 comments on commit 1183807

Please sign in to comment.