Skip to content

Commit 5cb177f

Browse files
committed
feat: underscript:ready event
1 parent 0344239 commit 5cb177f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/hooks/ready.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import compound from 'src/utils/compoundEvent';
2+
import eventManager from 'src/utils/eventManager';
3+
4+
// Call "ready" when all critical assets are loaded
5+
compound(
6+
'translation:underscript',
7+
() => eventManager.singleton.emit('underscript:ready'),
8+
);

0 commit comments

Comments
 (0)