@exezt-/webamp 1.5.0-0x705 → 1.5.0-0x707

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15266,16 +15266,26 @@ function files_addFilesFromUrl(atIndex = 0) {
15266
15266
  return async (dispatch, getState, {
15267
15267
  handleAddUrlEvent
15268
15268
  }) => {
15269
- if (handleAddUrlEvent) {} else console.log(0x0fff21);
15269
+ if (handleAddUrlEvent) {
15270
+ handleAddUrlEvent.prototype.call();
15271
+ }
15270
15272
  };
15271
15273
  }
15272
15274
  function files_addFilesFromList() {
15273
15275
  return async (dispatch, getState, {
15274
15276
  handleLoadListEvent
15275
15277
  }) => {
15276
- var _await;
15278
+ if (handleLoadListEvent) {
15279
+ const tracks = await handleLoadListEvent();
15277
15280
 
15278
- (_await = await handleLoadListEvent()) !== null && _await !== void 0 ? _await : console.log('no event provided');
15281
+ if (tracks != null) {
15282
+ dispatch(playlist_removeAllTracks());
15283
+ dispatch(files_loadMediaFiles(tracks, constants["e" /* LOAD_STYLE */].NONE, 0));
15284
+ return;
15285
+ }
15286
+ } else {
15287
+ alert("Not supported in Webamp");
15288
+ }
15279
15289
  };
15280
15290
  }
15281
15291
  function files_saveFilesToList() {