@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.
@@ -15266,14 +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
- await (handleLoadListEvent === null || handleLoadListEvent === void 0 ? void 0 : handleLoadListEvent.prototype.call());
15278
+ if (handleLoadListEvent) {
15279
+ const tracks = await handleLoadListEvent();
15280
+
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
+ }
15277
15289
  };
15278
15290
  }
15279
15291
  function files_saveFilesToList() {