summaryrefslogtreecommitdiff
path: root/source/features/mark-unread.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/mark-unread.tsx
parent44c3bf314b655b31e23ab36aeead8077a2a8bf93 (diff)
downloadrefined-github-6f0864f9b73568f46d7f2019d8ae54cad5b67bc8.tar.gz
refined-github-6f0864f9b73568f46d7f2019d8ae54cad5b67bc8.tar.zst
refined-github-6f0864f9b73568f46d7f2019d8ae54cad5b67bc8.zip
Update `element-ready`
Diffstat (limited to 'source/features/mark-unread.tsx')
-rw-r--r--source/features/mark-unread.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/features/mark-unread.tsx b/source/features/mark-unread.tsx
index e3a63f4c..fdcdbfce 100644
--- a/source/features/mark-unread.tsx
+++ b/source/features/mark-unread.tsx
@@ -1,12 +1,12 @@
import './mark-unread.css';
import React from 'dom-chef';
import select from 'select-dom';
+import elementReady from 'element-ready';
import delegate, {DelegateSubscription, DelegateEvent} from 'delegate-it';
import features from '../libs/features';
import observeEl from '../libs/simplified-element-observer';
import * as icons from '../libs/icons';
import * as pageDetect from '../libs/page-detect';
-import {safeElementReady} from '../libs/dom-utils';
import {getUsername, getOwnerAndRepo} from '../libs/utils';
type NotificationType = 'pull-request' | 'issue';
@@ -227,7 +227,7 @@ async function renderNotifications(unreadNotifications: Notification[]): Promise
}
// Don’t simplify selector, it’s for cross-extension compatibility
- let pageList = (await safeElementReady('#notification-center .notifications-list'))!;
+ let pageList = (await elementReady('#notification-center .notifications-list'))!;
if (!pageList) {
pageList = <div className="notifications-list"></div>;