diff options
| -rw-r--r-- | sticker/lib/matrix.py | 2 | ||||
| -rw-r--r-- | web/src/index.js | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/sticker/lib/matrix.py b/sticker/lib/matrix.py index 6d075bf..cf405d8 100644 --- a/sticker/lib/matrix.py +++ b/sticker/lib/matrix.py @@ -59,6 +59,8 @@ async def load_config(path: str) -> None: homeserver_url = input("Homeserver URL: ") access_token = input("Access token: ") whoami_url = URL(homeserver_url) / "_matrix" / "client" / "r0" / "account" / "whoami" + if whoami_url.scheme not in ("https", "http"): + whoami_url = whoami_url.with_scheme("https") user_id = await whoami(whoami_url, access_token) with open(path, "w") as config_file: json.dump({ diff --git a/web/src/index.js b/web/src/index.js index 4ac6df5..d084b37 100644 --- a/web/src/index.js +++ b/web/src/index.js @@ -220,7 +220,7 @@ class App extends Component { } navScroll(evt) { - this.navRef.scrollLeft += evt.deltaY * 12 + this.navRef.scrollLeft += evt.deltaY } render() { |
