summaryrefslogtreecommitdiff
path: root/source/features/mark-unread.tsx
diff options
context:
space:
mode:
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>;