@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.
- package/dist/core.common.js +5 -1
- package/dist/core.common.js.map +1 -1
- package/dist/core.umd.js +5 -1
- package/dist/core.umd.js.map +1 -1
- package/dist/core.umd.min.js +1 -1
- package/dist/core.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/core.umd.js
CHANGED
|
@@ -2137,7 +2137,11 @@ function file_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg)
|
|
|
2137
2137
|
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); }); }; }
|
|
2138
2138
|
|
|
2139
2139
|
var openDownload = function openDownload(apiBaseURL, fileId) {
|
|
2140
|
-
|
|
2140
|
+
if (fileId) {
|
|
2141
|
+
window.open("/file/getfile/".concat(fileId, "?_time='").concat(new Date().getTime()), '_blank');
|
|
2142
|
+
} else {
|
|
2143
|
+
window.open("".concat(apiBaseURL, "/api/download?_time='").concat(new Date().getTime()), '_blank');
|
|
2144
|
+
}
|
|
2141
2145
|
};
|
|
2142
2146
|
|
|
2143
2147
|
/* harmony default export */ var file = ({
|