From a70f6de2e402eb402b6b2303e6a6f7a173a97c80 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 26 Jun 2019 21:11:27 +0100 Subject: [PATCH] cleanup Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/vector/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vector/index.js b/src/vector/index.js index 82b4c887..92702788 100644 --- a/src/vector/index.js +++ b/src/vector/index.js @@ -117,7 +117,7 @@ function routeUrl(location) { } function onHashChange(ev) { - if (decodeURIComponent(window.location.hash) == lastLocationHashSet) { + if (decodeURIComponent(window.location.hash) === lastLocationHashSet) { // we just set this: no need to route it! return; } @@ -157,7 +157,7 @@ function makeRegistrationUrl(params) { const keys = Object.keys(params); for (let i = 0; i < keys.length; ++i) { - if (i == 0) { + if (i === 0) { url += '?'; } else { url += '&'; @@ -375,7 +375,7 @@ function loadOlm() { }).then(() => { console.log("Using WebAssembly Olm"); }).catch((e) => { - console.log("Failed to load Olm: trying legacy version"); + console.log("Failed to load Olm: trying legacy version", e); return new Promise((resolve, reject) => { const s = document.createElement('script'); s.src = 'olm_legacy.js'; // XXX: This should be cache-busted too