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.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/features/mark-unread.tsx b/source/features/mark-unread.tsx
index a5a15ccc..74bd32a7 100644
--- a/source/features/mark-unread.tsx
+++ b/source/features/mark-unread.tsx
@@ -1,6 +1,7 @@
import './mark-unread.css';
import React from 'dom-chef';
import select from 'select-dom';
+import onDomReady from 'dom-loaded';
import elementReady from 'element-ready';
import delegate, {DelegateSubscription, DelegateEvent} from 'delegate-it';
import features from '../libs/features';
@@ -392,6 +393,7 @@ function destroy(): void {
async function init(): Promise<void> {
destroy();
+ await onDomReady;
if (pageDetect.isNotifications()) {
const notifications = await getNotifications();