From ca98529bd2ecce14d521d83655cfdd1529ba74b5 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 16 May 2022 16:47:12 +0100 Subject: [PATCH] Improve code as per Sonar suggestions (#22224) --- res/decoder-ring/datatypes.js | 1 - res/decoder-ring/decoder.js | 2 +- res/decoder-ring/index.html | 3 +- res/welcome.html | 1 - src/vector/jitsi/index.ts | 2 +- src/vector/mobile_guide/index.html | 745 ++++++++++++-------- src/vector/mobile_guide/index.ts | 2 +- src/vector/platform/WebPlatform.ts | 7 +- src/vector/static/incompatible-browser.html | 6 +- src/vector/static/unable-to-load.html | 4 - webpack.config.js | 23 +- 11 files changed, 465 insertions(+), 331 deletions(-) diff --git a/res/decoder-ring/datatypes.js b/res/decoder-ring/datatypes.js index 93a779e079..73ab2173ca 100644 --- a/res/decoder-ring/datatypes.js +++ b/res/decoder-ring/datatypes.js @@ -18,7 +18,6 @@ * ``` */ - class Optional { static from(value) { return value && Some.of(value) || None; diff --git a/res/decoder-ring/decoder.js b/res/decoder-ring/decoder.js index b0cbd3c2e9..e677942277 100644 --- a/res/decoder-ring/decoder.js +++ b/res/decoder-ring/decoder.js @@ -102,7 +102,7 @@ function fetchAsSubject(endpoint) { const contentLength = res.headers.get("content-length"); const context = contentLength ? { length: parseInt(contentLength) } : {}; - const streamer = observeReadableStream(res.body, context, endpoint); + const streamer = observeReadableStream(res.body, context); streamer.subscribe((value) => { fetcher.next(value); }); diff --git a/res/decoder-ring/index.html b/res/decoder-ring/index.html index 0b47e2b44d..513d1e2d78 100644 --- a/res/decoder-ring/index.html +++ b/res/decoder-ring/index.html @@ -1,4 +1,5 @@ - + +
Set up Element on iOS or Android
-Set up Element on iOS or Android
+