File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -87,8 +87,8 @@ if (!("ariaNotify" in Element.prototype)) {
87
87
) ;
88
88
}
89
89
90
- /** @returns {void } */
91
- announce ( ) {
90
+ /** @returns {Promise< void> } */
91
+ async announce ( ) {
92
92
// Skip an unannounceable message.
93
93
if ( ! this . #canAnnounce( ) ) {
94
94
return ;
@@ -118,6 +118,7 @@ if (!("ariaNotify" in Element.prototype)) {
118
118
root . append ( liveRegion ) ;
119
119
}
120
120
121
+ await sleep ( 250 ) ;
121
122
liveRegion . handleMessage ( passkey , this . message ) ;
122
123
}
123
124
}
@@ -165,7 +166,6 @@ if (!("ariaNotify" in Element.prototype)) {
165
166
this . #currentMessage = this . #queue. shift ( ) ;
166
167
if ( ! this . #currentMessage) return ;
167
168
await this . #currentMessage. announce ( ) ;
168
- await sleep ( 250 ) ;
169
169
this . #processNext( ) ;
170
170
}
171
171
} ) ( ) ;
You can’t perform that action at this time.
0 commit comments