@internetarchive/bookreader
Advanced tools
Comparing version 4.23.3 to 4.23.4
{ | ||
"name": "@internetarchive/bookreader", | ||
"version": "4.23.3", | ||
"version": "4.23.4", | ||
"description": "The Internet Archive BookReader.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -76,3 +76,3 @@ /* global BookReader, soundManager */ | ||
if (/[?&]_autoReadAloud=show/.test(location.toString())) { | ||
this.ttsStart(); | ||
this.ttsStart(false); // false flag is to initiate read aloud controls | ||
} | ||
@@ -183,3 +183,3 @@ } | ||
//______________________________________________________________________________ | ||
BookReader.prototype.ttsStart = function () { | ||
BookReader.prototype.ttsStart = function (startTTSEngine = true) { | ||
if (this.constModeThumb == this.mode) | ||
@@ -191,3 +191,4 @@ this.switchMode(this.constMode1up); | ||
this.ttsSendAnalyticsEvent('Start'); | ||
this.ttsEngine.start(this.currentIndex(), this.getNumLeafs()); | ||
if (startTTSEngine) | ||
this.ttsEngine.start(this.currentIndex(), this.getNumLeafs()); | ||
}; | ||
@@ -194,0 +195,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
7094952
27361