Do not stop TTS on page load

Readers might want to listen and browse, which this made impossible.
This commit is contained in:
Tetrakern 2023-06-11 22:20:24 +02:00
parent 9e727533dd
commit b8fefa3471
2 changed files with 1 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -43,9 +43,6 @@ if (!fcn_isLoggedIn && !fcn_isAjaxAuth) {
});
}
// Terminate ongoing text-to-speech when page is reloaded
if (typeof speechSynthesis !== 'undefined') window.speechSynthesis.cancel();
// Remove query args (defined in _theme_setup.php)
if (typeof fcn_removeQueryArgs === 'function') {
fcn_removeQueryArgs();