Skip to content

Commit 7a1a486

Browse files
committed
fix: give time for plugins to register before initial setup
1 parent 8dbf5f2 commit 7a1a486

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hooks/updates.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import sleep from 'src/utils/sleep';
1212
import createParser from 'src/utils/parser';
1313
import DialogHelper from 'src/utils/DialogHelper';
1414
import { getVersion } from 'src/utils/plugin';
15+
import compound from 'src/utils/compoundEvent';
1516

1617
const HOUR = 60 * 60 * 1000;
1718
const DAY = 24 * HOUR;
@@ -245,7 +246,7 @@ each(localStorage, (data, key) => wrap(() => {
245246
}, key));
246247

247248
sessionStorage.removeItem(CHECKING);
248-
eventManager.on('underscript:ready', setup);
249+
compound('underscript:ready', ':load', setup);
249250

250251
function build() {
251252
let addedRefresh = false;

0 commit comments

Comments
 (0)