code: function(e) {
              toggleActive(e, false);
  
              // Load the file into wavesurfer
              if (e.dataTransfer.files.length) {
                  wavesurfer.loadBlob(e.dataTransfer.files[0]);
              } else {
                  wavesurfer.fireEvent('error', 'Not a file');
              }
          }
docs: Drop event