summaryrefslogtreecommitdiff
path: root/source/features/show-names.tsx
diff options
context:
space:
mode:
authorGravatar Federico Brigante <github@bfred.it> 2019-08-01 12:17:48 +0700
committerGravatar GitHub <noreply@github.com> 2019-08-01 12:17:48 +0700
commitf7a56c145807749856859bb5169dc75c7e17a6d6 (patch)
tree6b59d2f81bc27f99b025d135f5c5803989b013cb /source/features/show-names.tsx
parent4ae113378da1b2ecebcea5839b22886a4a6b93c4 (diff)
downloadrefined-github-f7a56c145807749856859bb5169dc75c7e17a6d6.tar.gz
refined-github-f7a56c145807749856859bb5169dc75c7e17a6d6.tar.zst
refined-github-f7a56c145807749856859bb5169dc75c7e17a6d6.zip
Fix console error in `show-names` (#2292)
Diffstat (limited to 'source/features/show-names.tsx')
-rw-r--r--source/features/show-names.tsx5
1 files changed, 3 insertions, 2 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({