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()
|
||||
buf.push(markup)
|
||||
size += markup.length
|
||||
text = buf.join('')
|
||||
if text.length:
|
||||
self.create_utterance(text)
|
||||
commit()
|
||||
if self.queue.length:
|
||||
window.speechSynthesis.speak(self.queue[0])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user