summaryrefslogtreecommitdiff
path: root/source/libs/features.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/libs/features.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/libs/features.tsx4
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;