@xatlas/rainbow-core 1.7.2 → 1.7.3

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.
@@ -2128,7 +2128,11 @@ function file_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg)
2128
2128
  function file_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { file_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { file_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
2129
2129
 
2130
2130
  var openDownload = function openDownload(apiBaseURL, fileId) {
2131
- window.open("/file/getfile/".concat(fileId, "?_time='").concat(new Date().getTime()), '_blank');
2131
+ if (fileId) {
2132
+ window.open("/file/getfile/".concat(fileId, "?_time='").concat(new Date().getTime()), '_blank');
2133
+ } else {
2134
+ window.open("".concat(apiBaseURL, "/api/download?_time='").concat(new Date().getTime()), '_blank');
2135
+ }
2132
2136
  };
2133
2137
 
2134
2138
  /* harmony default export */ var file = ({