mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
DRYer
This commit is contained in:
parent
d12f41a4a9
commit
211c182462
@ -156,9 +156,7 @@ class Client:
|
|||||||
commit()
|
commit()
|
||||||
buf.push(markup)
|
buf.push(markup)
|
||||||
size += markup.length
|
size += markup.length
|
||||||
text = buf.join('')
|
commit()
|
||||||
if text.length:
|
|
||||||
self.create_utterance(text)
|
|
||||||
if self.queue.length:
|
if self.queue.length:
|
||||||
window.speechSynthesis.speak(self.queue[0])
|
window.speechSynthesis.speak(self.queue[0])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user