Use origin as the server to connect to

jryans/p2p
J. Ryan Stinnett 2021-07-05 14:51:49 +01:00
parent 1e051365b1
commit 9d1bed29b2
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ function sleep(ms) {
async function autoRegister() {
console.log("dendrite: Auto-registration in progress");
const cli = Matrix.createClient({
baseUrl: "https://p2p.riot.im",
baseUrl: window.location.origin,
});
const password = "this should be really really secure";