podcast-test: no this-alias in the speech stub (the gate lints tests too)
This commit is contained in:
parent
8c532ea6e6
commit
3fb491c54d
1 changed files with 2 additions and 3 deletions
|
|
@ -604,11 +604,10 @@ try {
|
||||||
paused: false,
|
paused: false,
|
||||||
speak(utterance) {
|
speak(utterance) {
|
||||||
window.__utterances.push(utterance);
|
window.__utterances.push(utterance);
|
||||||
this._speaking = true;
|
window.speechSynthesis._speaking = true;
|
||||||
const mine = this;
|
|
||||||
queueMicrotask(() => utterance.onstart && utterance.onstart({ name: "start", charIndex: 0 }));
|
queueMicrotask(() => utterance.onstart && utterance.onstart({ name: "start", charIndex: 0 }));
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
mine._speaking = false;
|
window.speechSynthesis._speaking = false;
|
||||||
if (utterance.onend) utterance.onend();
|
if (utterance.onend) utterance.onend();
|
||||||
}, SENTENCE_MS);
|
}, SENTENCE_MS);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue