rebuilt with SDK fix for downloads
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@
|
|||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"react-intl": "^6.3.0",
|
"react-intl": "^6.3.0",
|
||||||
"tinode-sdk": "^0.22.2",
|
"tinode-sdk": "^0.22.3",
|
||||||
"webm-duration-fix": "^1.0.4"
|
"webm-duration-fix": "^1.0.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
+7
-1
@@ -3028,6 +3028,11 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
|
|
||||||
|
|
||||||
let XHRProvider;
|
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 {
|
class LargeFileHelper {
|
||||||
constructor(tinode, version) {
|
constructor(tinode, version) {
|
||||||
this._tinode = tinode;
|
this._tinode = tinode;
|
||||||
@@ -3158,6 +3163,7 @@ class LargeFileHelper {
|
|||||||
const instance = this;
|
const instance = this;
|
||||||
const xhr = new XHRProvider();
|
const xhr = new XHRProvider();
|
||||||
this.xhr.push(xhr);
|
this.xhr.push(xhr);
|
||||||
|
relativeUrl = addURLParam(relativeUrl, 'asatt', '1');
|
||||||
xhr.open('GET', relativeUrl, true);
|
xhr.open('GET', relativeUrl, true);
|
||||||
xhr.setRequestHeader('X-Tinode-APIKey', this._apiKey);
|
xhr.setRequestHeader('X-Tinode-APIKey', this._apiKey);
|
||||||
xhr.setRequestHeader('X-Tinode-Auth', 'Token ' + this._authToken.token);
|
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 */ __webpack_require__.d(__webpack_exports__, {
|
||||||
/* harmony export */ "PACKAGE_VERSION": () => (/* binding */ PACKAGE_VERSION)
|
/* harmony export */ "PACKAGE_VERSION": () => (/* binding */ PACKAGE_VERSION)
|
||||||
/* harmony export */ });
|
/* 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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user