summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/features/show-names.tsx5
-rw-r--r--source/libs/features.tsx2
2 files changed, 3 insertions, 4 deletions
diff --git a/source/features/show-names.tsx b/source/features/show-names.tsx
index 1f53bc2a..ad0615e5 100644
--- a/source/features/show-names.tsx
+++ b/source/features/show-names.tsx
@@ -4,6 +4,7 @@ import select from 'select-dom';
import * as api from '../libs/api';
import features from '../libs/features';
import {getUsername, compareNames} from '../libs/utils';
+import onNewsfeedLoad from '../libs/on-newsfeed-load';
async function init(): Promise<false | void> {
const usernameElements = select.all([
@@ -72,8 +73,8 @@ features.add({
include: [
features.isDashboard
],
- load: features.onNewsfeedLoad,
- init
+ load: features.onDomReady,
+ init: async () => onNewsfeedLoad(init)
});
features.add({
diff --git a/source/libs/features.tsx b/source/libs/features.tsx
index db628ca3..cec4099b 100644
--- a/source/libs/features.tsx
+++ b/source/libs/features.tsx
@@ -4,7 +4,6 @@ import onDomReady from 'dom-loaded';
import elementReady from 'element-ready';
import optionsStorage, {RGHOptions} from '../options-storage';
import onNewComments from './on-new-comments';
-import onNewsfeedLoad from './on-newsfeed-load';
import onFileListUpdate from './on-file-list-update';
import * as pageDetect from './page-detect';
@@ -188,7 +187,6 @@ export default {
// Loading mechanisms
onDomReady,
- onNewsfeedLoad,
onNewComments,
onFileListUpdate,
onAjaxedPages,