example/annotation/app.js
function loadRegions(regions) {
    regions.forEach(function(region) {
        region.color = randomColor(0.1);
        wavesurfer.addRegion(region);
    });
}
function loadRegions(regions) {
    regions.forEach(function(region) {
        region.color = randomColor(0.1);
        wavesurfer.addRegion(region);
    });
}
function loadRegions ( regions ) { regions . forEach ( function ( region ) { region . color = randomColor ( 0.1 ) ; wavesurfer . addRegion ( region ) ; } ) ; }
Load regions from localStorage.
Load regions from localStorage .