Remove excess DOM manipulation
This commit is contained in:
parent
8c12c60815
commit
f088cc474e
1 changed files with 0 additions and 5 deletions
|
|
@ -115,11 +115,6 @@ function renderControlsConfigHandler(_app, element) {
|
|||
const keybindingList = element.querySelector(`section[data-group="${tabGroup}"][data-tab="${__ID__}"]`);
|
||||
const tabButton = element.querySelector(`button[data-group="${tabGroup}"][data-tab="${__ID__}"]`);
|
||||
|
||||
if (keybindingList.childElementCount === 0) {
|
||||
tabButton?.remove();
|
||||
return;
|
||||
};
|
||||
|
||||
const keybind = keybindingList.querySelector(`.form-group[data-action-id="${__ID__}.${key}"]`);
|
||||
keybind?.remove();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue