Skip to content

Commit

Permalink
no-op on pause/resume, see #8
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Mar 13, 2022
1 parent bb876d7 commit 911d22f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ class SpeechSynthesis {
* @public
*/
pause() {
throw new Error( 'TTS plugin does not support pause/resume' );
console.log( 'SpeechSynthesis pause requested but TTS plugin does not support pause/resume.' );
}

/**
* Puts the SpeechSynthesis object into a non-paused state. Resumes it if it was alreadyd paused.
* @public
*/
resume() {
throw new Error( 'TTS plugin does not support pause/resume' );
console.log( 'SpeechSynthesis resume requested but TTS plugin does not support pause/resume.' );
}

/**
Expand Down

0 comments on commit 911d22f

Please sign in to comment.