1
0
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:
Travis Ralston
2018-10-30 14:12:41 -06:00
parent f2881126cd
commit 68b65dd357
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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(