rebuilt with SDK fix for downloads

This commit is contained in:
or-else
2023-04-14 19:20:25 -07:00
parent 8dd32a341b
commit 855f871041
5 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -71,7 +71,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-intl": "^6.3.0",
"tinode-sdk": "^0.22.2",
"tinode-sdk": "^0.22.3",
"webm-duration-fix": "^1.0.4"
},
"devDependencies": {
+7 -1
View File
@@ -3028,6 +3028,11 @@ __webpack_require__.r(__webpack_exports__);
let XHRProvider;
function addURLParam(relUrl, key, value) {
const url = new URL(relUrl, window.location.origin);
url.searchParams.append(key, value);
return url.toString().substring(window.location.origin.length);
}
class LargeFileHelper {
constructor(tinode, version) {
this._tinode = tinode;
@@ -3158,6 +3163,7 @@ class LargeFileHelper {
const instance = this;
const xhr = new XHRProvider();
this.xhr.push(xhr);
relativeUrl = addURLParam(relativeUrl, 'asatt', '1');
xhr.open('GET', relativeUrl, true);
xhr.setRequestHeader('X-Tinode-APIKey', this._apiKey);
xhr.setRequestHeader('X-Tinode-Auth', 'Token ' + this._authToken.token);
@@ -4944,7 +4950,7 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "PACKAGE_VERSION": () => (/* binding */ PACKAGE_VERSION)
/* harmony export */ });
const PACKAGE_VERSION = "0.22.2";
const PACKAGE_VERSION = "0.22.3";
/***/ })
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long