From 41b56484c398e23335d3a07cb3da187d26b284d4 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 21 Aug 2019 18:19:38 -0600 Subject: [PATCH] Hack around a scalar bug See https://github.com/vector-im/riot-web/issues/10498 --- src/scalar/ScalarClient.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/scalar/ScalarClient.ts b/src/scalar/ScalarClient.ts index 1bac49b..d3dc814 100644 --- a/src/scalar/ScalarClient.ts +++ b/src/scalar/ScalarClient.ts @@ -44,7 +44,11 @@ export class ScalarClient { return { scalarUrl: parsed.toString(), headers: headers, - queryString: {}, + queryString: { + // HACK: This is due to a Scalar bug + // https://github.com/vector-im/riot-web/issues/10498 + v: SCALAR_API_VERSION, + }, }; } }