@@ -13,8 +13,8 @@ import { Track, MYRADIO_NON_API_BASE, AuxItem } from "../api";
13
13
import { AppThunk } from "../store" ;
14
14
import { RootState } from "../rootReducer" ;
15
15
import WaveSurfer from "wavesurfer.js" ;
16
- import CursorPlugin from ' wavesurfer.js/dist/plugin/wavesurfer.cursor.min.js' ;
17
- import RegionsPlugin from ' wavesurfer.js/dist/plugin/wavesurfer.regions.min.js' ;
16
+ import CursorPlugin from " wavesurfer.js/dist/plugin/wavesurfer.cursor.min.js" ;
17
+ import RegionsPlugin from " wavesurfer.js/dist/plugin/wavesurfer.regions.min.js" ;
18
18
import * as later from "later" ;
19
19
import NewsIntro from "../assets/audio/NewsIntro.wav" ;
20
20
import NewsEndCountdown from "../assets/audio/NewsEndCountdown.wav" ;
@@ -385,20 +385,18 @@ export const load = (
385
385
credentials : "include" ,
386
386
} as any ,
387
387
plugins : [
388
- CursorPlugin . create (
389
- {
390
- showTime : true ,
391
- opacity : 1 ,
392
- customShowTimeStyle : {
393
- 'background-color' : '#000' ,
394
- color : '#fff' ,
395
- padding : '2px' ,
396
- 'font-size' : '10px'
397
- }
398
- }
399
- ) ,
400
- RegionsPlugin . create ( { } )
401
- ]
388
+ CursorPlugin . create ( {
389
+ showTime : true ,
390
+ opacity : 1 ,
391
+ customShowTimeStyle : {
392
+ "background-color" : "#000" ,
393
+ color : "#fff" ,
394
+ padding : "2px" ,
395
+ "font-size" : "10px" ,
396
+ } ,
397
+ } ) ,
398
+ RegionsPlugin . create ( { } ) ,
399
+ ] ,
402
400
} ) ;
403
401
404
402
wavesurfer . on ( "ready" , ( ) => {
@@ -421,15 +419,13 @@ export const load = (
421
419
wavesurfer . play ( ) ;
422
420
}
423
421
if ( state . loadedItem && "intro" in state . loadedItem ) {
424
- wavesurfer . addRegion (
425
- {
426
- id : "intro" ,
427
- resize : false ,
428
- start : 0 ,
429
- end : state . loadedItem . intro ,
430
- color : 'rgba(125,0,255, 0.12)'
431
- }
432
- )
422
+ wavesurfer . addRegion ( {
423
+ id : "intro" ,
424
+ resize : false ,
425
+ start : 0 ,
426
+ end : state . loadedItem . intro ,
427
+ color : "rgba(125,0,255, 0.12)" ,
428
+ } ) ;
433
429
}
434
430
} ) ;
435
431
wavesurfer . on ( "play" , ( ) => {
0 commit comments