@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.
@@ -10557,16 +10557,26 @@ function files_addFilesFromUrl(atIndex = 0) {
10557
10557
  return async (dispatch, getState, {
10558
10558
  handleAddUrlEvent
10559
10559
  }) => {
10560
- if (handleAddUrlEvent) {} else console.log(0x0fff21);
10560
+ if (handleAddUrlEvent) {
10561
+ handleAddUrlEvent.prototype.call();
10562
+ }
10561
10563
  };
10562
10564
  }
10563
10565
  function files_addFilesFromList() {
10564
10566
  return async (dispatch, getState, {
10565
10567
  handleLoadListEvent
10566
10568
  }) => {
10567
- var _await;
10569
+ if (handleLoadListEvent) {
10570
+ const tracks = await handleLoadListEvent();
10568
10571
 
10569
- (_await = await handleLoadListEvent()) !== null && _await !== void 0 ? _await : console.log('no event provided');
10572
+ if (tracks != null) {
10573
+ dispatch(playlist_removeAllTracks());
10574
+ dispatch(files_loadMediaFiles(tracks, constants["e" /* LOAD_STYLE */].NONE, 0));
10575
+ return;
10576
+ }
10577
+ } else {
10578
+ alert("Not supported in Webamp");
10579
+ }
10570
10580
  };
10571
10581
  }
10572
10582
  function files_saveFilesToList() {