feat(riot-v5): handle page query param & refactor router & remove old code

This commit is contained in:
Joxit 2021-03-29 21:49:37 +02:00
parent 603b5861fa
commit 8ef411059c
No known key found for this signature in database
GPG key ID: F526592B8E012263
10 changed files with 74 additions and 733 deletions

View file

@ -32,8 +32,7 @@
</material-popup>
<script>
import {
getRegistryServers,
updateHistory
getRegistryServers
} from '../../scripts/utils';
import router from '../../scripts/router';
@ -58,7 +57,7 @@
router.home()
this.props.onServerChange(url);
this.props.onClose()
setTimeout(() => updateHistory(url), 100);
setTimeout(() => router.updateUrlQueryParam(url), 100);
}
}
</script>