Write additional tests (#22802)

* Write additional tests

* Make Sonar happier
This commit is contained in:
Michael Telatynski
2022-07-11 13:22:37 +01:00
committed by GitHub
parent a4f9e7adad
commit 017dfb6606
10 changed files with 87 additions and 40 deletions

View File

@@ -41,7 +41,7 @@ function routeUrl(location: Location) {
(window.matrixChat as MatrixChatType).showScreen(s.screen, s.params);
}
function onHashChange(ev: HashChangeEvent) {
function onHashChange() {
if (decodeURIComponent(window.location.hash) === lastLocationHashSet) {
// we just set this: no need to route it!
return;