summaryrefslogtreecommitdiff
path: root/source/features/toggle-files-button.tsx
diff options
context:
space:
mode:
authorGravatar Federico Brigante <github@bfred.it> 2020-02-19 05:01:33 +0800
committerGravatar GitHub <noreply@github.com> 2020-02-19 05:01:33 +0800
commit30788b1a85b6681ff38cf639d01432c6a59a2b3b (patch)
tree2c574ce7383f99f8124f6751171344b19c2183ba /source/features/toggle-files-button.tsx
parent8099d791d3f21243e45a8c62b3effdc47cf02973 (diff)
downloadrefined-github-30788b1a85b6681ff38cf639d01432c6a59a2b3b.tar.gz
refined-github-30788b1a85b6681ff38cf639d01432c6a59a2b3b.tar.zst
refined-github-30788b1a85b6681ff38cf639d01432c6a59a2b3b.zip
Update linters (#2802)
Diffstat (limited to 'source/features/toggle-files-button.tsx')
-rw-r--r--source/features/toggle-files-button.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/features/toggle-files-button.tsx b/source/features/toggle-files-button.tsx
index 5287d392..f8023767 100644
--- a/source/features/toggle-files-button.tsx
+++ b/source/features/toggle-files-button.tsx
@@ -4,7 +4,7 @@ import select from 'select-dom';
import delegate from 'delegate-it';
import chevronDownIcon from 'octicon/chevron-down.svg';
import features from '../libs/features';
-import observeEl from '../libs/simplified-element-observer';
+import observeElement from '../libs/simplified-element-observer';
function addButton(): void {
// `div` excludes `include-fragment`, which means the list is still loading. #2160
@@ -27,7 +27,7 @@ function addButton(): void {
function init(): void {
const repoContent = select('.repository-content')!;
- observeEl(repoContent, addButton);
+ observeElement(repoContent, addButton);
delegate('.rgh-toggle-files', 'click', ({delegateTarget}) => {
delegateTarget.setAttribute('aria-expanded', String(!repoContent.classList.toggle('rgh-files-hidden')));
});