From 6f0864f9b73568f46d7f2019d8ae54cad5b67bc8 Mon Sep 17 00:00:00 2001 From: Federico Brigante Date: Tue, 28 May 2019 13:56:27 +0800 Subject: Update `element-ready` --- source/libs/features.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/libs/features.tsx') 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 = new Promise(async resolve => { - await safeElementReady('body'); + await elementReady('body'); if (pageDetect.is500()) { return; -- cgit v1.2.3