Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/10181/head
Michael Telatynski 2019-06-26 21:11:27 +01:00
parent dbd198ec07
commit a70f6de2e4
1 changed files with 3 additions and 3 deletions

View File

@ -117,7 +117,7 @@ function routeUrl(location) {
} }
function onHashChange(ev) { function onHashChange(ev) {
if (decodeURIComponent(window.location.hash) == lastLocationHashSet) { if (decodeURIComponent(window.location.hash) === lastLocationHashSet) {
// we just set this: no need to route it! // we just set this: no need to route it!
return; return;
} }
@ -157,7 +157,7 @@ function makeRegistrationUrl(params) {
const keys = Object.keys(params); const keys = Object.keys(params);
for (let i = 0; i < keys.length; ++i) { for (let i = 0; i < keys.length; ++i) {
if (i == 0) { if (i === 0) {
url += '?'; url += '?';
} else { } else {
url += '&'; url += '&';
@ -375,7 +375,7 @@ function loadOlm() {
}).then(() => { }).then(() => {
console.log("Using WebAssembly Olm"); console.log("Using WebAssembly Olm");
}).catch((e) => { }).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) => { return new Promise((resolve, reject) => {
const s = document.createElement('script'); const s = document.createElement('script');
s.src = 'olm_legacy.js'; // XXX: This should be cache-busted too s.src = 'olm_legacy.js'; // XXX: This should be cache-busted too