@exezt-/webamp 1.5.0-0x706 → 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,14 +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
- await (handleLoadListEvent === null || handleLoadListEvent === void 0 ? void 0 : handleLoadListEvent.prototype.call());
10569
+ if (handleLoadListEvent) {
10570
+ const tracks = await handleLoadListEvent();
10571
+
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
+ }
10568
10580
  };
10569
10581
  }
10570
10582
  function files_saveFilesToList() {