summaryrefslogtreecommitdiff
path: root/source/features/more-dropdown.tsx
diff options
context:
space:
mode:
authorGravatar Federico Brigante <github@bfred.it> 2019-05-28 13:56:27 +0800
committerGravatar Federico Brigante <github@bfred.it> 2019-05-28 13:56:27 +0800
commit6f0864f9b73568f46d7f2019d8ae54cad5b67bc8 (patch)
tree45219ddc04eab8a994beb5039c95b8332688749b /source/features/more-dropdown.tsx
parent44c3bf314b655b31e23ab36aeead8077a2a8bf93 (diff)
downloadrefined-github-6f0864f9b73568f46d7f2019d8ae54cad5b67bc8.tar.gz
refined-github-6f0864f9b73568f46d7f2019d8ae54cad5b67bc8.tar.zst
refined-github-6f0864f9b73568f46d7f2019d8ae54cad5b67bc8.zip
Update `element-ready`
Diffstat (limited to '')
-rw-r--r--source/features/more-dropdown.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/features/more-dropdown.tsx b/source/features/more-dropdown.tsx
index 6fec9d1d..c8f9721c 100644
--- a/source/features/more-dropdown.tsx
+++ b/source/features/more-dropdown.tsx
@@ -1,11 +1,12 @@
import './more-dropdown.css';
import React from 'dom-chef';
import select from 'select-dom';
+import elementReady from 'element-ready';
import features from '../libs/features';
import * as icons from '../libs/icons';
import {getRepoURL} from '../libs/utils';
import {isEnterprise} from '../libs/page-detect';
-import {appendBefore, safeElementReady} from '../libs/dom-utils';
+import {appendBefore} from '../libs/dom-utils';
const repoUrl = getRepoURL();
@@ -25,7 +26,7 @@ function createDropdown(): void {
}
async function init(): Promise<void> {
- await safeElementReady('.pagehead + *'); // Wait for the tab bar to be loaded
+ await elementReady('.pagehead + *'); // Wait for the tab bar to be loaded
if (!select.exists('.reponav-dropdown')) {
createDropdown();
}