1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2026-01-03 23:22:30 +03:00

We can't use arrow functions, apparently.

This commit is contained in:
Travis Ralston
2018-10-30 14:27:51 -06:00
parent 054aac17aa
commit b57e858ad1

View File

@@ -2,7 +2,7 @@ var matrixcs = require("./lib/matrix");
const request = require('browser-request');
const queryString = require('query-string');
matrixcs.request((opts, fn) => {
matrixcs.request(function(opts, fn) {
// We manually fix the query string for browser-request because
// it doesn't correctly handle cases like ?via=one&via=two. Instead
// we mimic `request`'s query string interface to make it all work