You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-09-03 08:42:03 +03:00
Because uglify-js breaks everything
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
var matrixcs = require("./lib/matrix");
|
var matrixcs = require("./lib/matrix");
|
||||||
var request = require("browser-request");
|
var request = require("browser-request");
|
||||||
request.enableConstructionOfQueryString = true; // note: this is long so we hopefully don't collide
|
global.enableConstructionOfQueryString = true; // note: this is long so we hopefully don't collide
|
||||||
matrixcs.request(request);
|
matrixcs.request(request);
|
||||||
|
|
||||||
// just *accessing* indexedDB throws an exception in firefox with
|
// just *accessing* indexedDB throws an exception in firefox with
|
||||||
|
@@ -747,7 +747,7 @@ module.exports.MatrixHttpApi.prototype = {
|
|||||||
const reqPromise = defer.promise;
|
const reqPromise = defer.promise;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (this.opts.request.enableConstructionOfQueryString) {
|
if (global && global.enableConstructionOfQueryString) {
|
||||||
queryParams = queryString.stringify(queryParams, opts.qsStringifyOptions);
|
queryParams = queryString.stringify(queryParams, opts.qsStringifyOptions);
|
||||||
}
|
}
|
||||||
req = this.opts.request(
|
req = this.opts.request(
|
||||||
|
Reference in New Issue
Block a user