diff options
author | 2019-05-28 13:56:27 +0800 | |
---|---|---|
committer | 2019-05-28 13:56:27 +0800 | |
commit | 6f0864f9b73568f46d7f2019d8ae54cad5b67bc8 (patch) | |
tree | 45219ddc04eab8a994beb5039c95b8332688749b /source/libs/features.tsx | |
parent | 44c3bf314b655b31e23ab36aeead8077a2a8bf93 (diff) | |
download | refined-github-6f0864f9b73568f46d7f2019d8ae54cad5b67bc8.tar.gz refined-github-6f0864f9b73568f46d7f2019d8ae54cad5b67bc8.tar.zst refined-github-6f0864f9b73568f46d7f2019d8ae54cad5b67bc8.zip |
Update `element-ready`
Diffstat (limited to '')
-rw-r--r-- | source/libs/features.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/libs/features.tsx b/source/libs/features.tsx index a8da200a..be1a159a 100644 --- a/source/libs/features.tsx +++ b/source/libs/features.tsx @@ -2,10 +2,10 @@ import React from 'dom-chef'; import select from 'select-dom'; import onDomReady from 'dom-loaded'; import OptionsSync from 'webext-options-sync'; +import elementReady from 'element-ready'; import onNewComments from './on-new-comments'; import onFileListUpdate from './on-file-list-update'; import * as pageDetect from './page-detect'; -import {safeElementReady} from './dom-utils'; type BooleanFunction = () => boolean; type VoidFunction = () => void; @@ -79,7 +79,7 @@ onAjaxedPages(async () => { // Rule assumes we don't want to leave it pending: // eslint-disable-next-line no-async-promise-executor const globalReady: Promise<GlobalOptions> = new Promise(async resolve => { - await safeElementReady('body'); + await elementReady('body'); if (pageDetect.is500()) { return; |