(buttons: HTMLElement[])
| 34 | } |
| 35 | |
| 36 | function wrapButtons(buttons: HTMLElement[]): void { |
| 37 | groupButtons(buttons, 'd-flex', 'rgh-default-branch-button-group'); |
| 38 | |
| 39 | // `rounded-left-0` is for Firefox |
| 40 | // https://github.com/refined-github/refined-github/pull/8030 |
| 41 | buttons.at(-1)!.classList.add('rounded-left-0'); |
| 42 | } |
| 43 | |
| 44 | async function add(branchSelectorElement: HTMLElement): Promise<void> { |
| 45 | // Apply here instead of `excludes` due to React loading: |