Fix dated example (#3049)

This commit is contained in:
Michael Telatynski
2023-01-11 13:08:30 +00:00
committed by GitHub
parent 3e48c76a77
commit 3ce582d004
+1 -1
View File
@@ -46,7 +46,7 @@ if you do not have it already.
```javascript
import * as sdk from "matrix-js-sdk";
const client = sdk.createClient("https://matrix.org");
const client = sdk.createClient({ baseUrl: "https://matrix.org" });
client.publicRooms(function (err, data) {
console.log("Public Rooms: %s", JSON.stringify(data));
});