mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: find copy file button group element
This commit is contained in:
parent
8c53037d8f
commit
83f357008e
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ export function getCodeElement() {
|
|||
export function attachCopyFileBtn() {
|
||||
if (getCurrentPageType() === PAGE_TYPES.RAW_TEXT) {
|
||||
// the button group in file content header
|
||||
const buttonGroupSelector = '.repository-content > .Box > .Box-header .BtnGroup'
|
||||
const buttonGroupSelector = '.repository-content .Box-header .BtnGroup'
|
||||
const buttonGroups = document.querySelectorAll(buttonGroupSelector)
|
||||
|
||||
if (buttonGroups.length === 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue