diff options
author | 2021-04-20 16:34:44 +0700 | |
---|---|---|
committer | 2021-04-20 16:34:44 +0700 | |
commit | 8879ebefcbabc9df2eff41a1864ccfff568040c0 (patch) | |
tree | 367cf5cf63476a4925d84fa421372d391e2e2172 /source/features/default-branch-button.tsx | |
parent | d87b2a5f65fe3bdbbdf25709f9073f664e24bc07 (diff) | |
download | refined-github-8879ebefcbabc9df2eff41a1864ccfff568040c0.tar.gz refined-github-8879ebefcbabc9df2eff41a1864ccfff568040c0.tar.zst refined-github-8879ebefcbabc9df2eff41a1864ccfff568040c0.zip |
`fit-textareas`: Improve performance (#4222)
Diffstat (limited to 'source/features/default-branch-button.tsx')
-rw-r--r-- | source/features/default-branch-button.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/features/default-branch-button.tsx b/source/features/default-branch-button.tsx index 6b0c56c5..e21b3e85 100644 --- a/source/features/default-branch-button.tsx +++ b/source/features/default-branch-button.tsx @@ -10,7 +10,7 @@ import getDefaultBranch from '../github-helpers/get-default-branch'; import {getCurrentCommittish} from '../github-helpers'; async function init(): Promise<false | void> { - const branchSelector = await elementReady<HTMLElement>('[data-hotkey="w"]'); + const branchSelector = await elementReady('[data-hotkey="w"]'); // The branch selector is missing from History pages of files and folders (it only appears on the root) if (!branchSelector) { return false; |