File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 262262 rxjs . startWith ( { state : "STOPPED" } )
263263 )
264264 )
265- ) . subscribe ( ( { state, playbackError} ) => {
266- $ ( "#test-voice .spinner" ) . toggle ( state == "LOADING" )
267- $ ( "#test-voice [data-i18n]" ) . text (
268- brapi . i18n . getMessage ( state == "STOPPED" ? "options_test_button" : "options_stop_button" )
269- )
270- if ( state == "STOPPED" && playbackError ) handleError ( playbackError )
271- else $ ( "#status" ) . parent ( ) . hide ( )
265+ ) . subscribe ( {
266+ next ( { state, playbackError} ) {
267+ $ ( "#test-voice .spinner" ) . toggle ( state == "LOADING" )
268+ $ ( "#test-voice [data-i18n]" ) . text (
269+ brapi . i18n . getMessage ( state == "STOPPED" ? "options_test_button" : "options_stop_button" )
270+ )
271+ if ( state == "STOPPED" && playbackError ) handleError ( playbackError )
272+ else $ ( "#status" ) . parent ( ) . hide ( )
273+ } ,
274+ error : handleError
272275 } )
273276
274277
You can’t perform that action at this time.
0 commit comments