dist/wavesurfer-html-init.js
// and pass it to a callback
and pass it to a callback
and pass it to a callback
function loadPlugin(name, cb) {
        var src = _params.pluginCdnTemplate.replace('[name]', name);
        (0, _loadScript.default)(src, {
          async: false
        }, function (err, plugin) {
          if (err) {
            return console.error("WaveSurfer plugin ".concat(name, " not found at ").concat(src));
          }
          cb(window.WaveSurfer[name]);
        });
      }
function loadPlugin ( name , cb ) { var src = _params . pluginCdnTemplate . replace ( '[name]' , name ) ; ( 0 , _loadScript . default ) ( src , { async : false } , function ( err , plugin ) { if ( err ) { return console . error ( "WaveSurfer plugin " . concat ( name , " not found at " ) . concat ( src ) ) ; } cb ( window . WaveSurfer [ name ] ) ; } ) ; }
and pass it to a callback
and pass it to a callback
// eslint-disable-next-line no-console