fix svelte world

This commit is contained in:
_Bastler 2022-02-08 11:20:51 +01:00
parent a2e50dcd95
commit 88e20290bd
3 changed files with 4 additions and 5 deletions

View File

@ -2,9 +2,7 @@
import { connectionManager } from "../../Connexion/ConnectionManager";
import type { World } from "../../Connexion/World";
let worlds = connectionManager.getWorlds();
let worlds : Promise<World[]> = connectionManager.getWorlds();
function worldRoomId(world: World) {
return world.roomId;

View File

@ -20,6 +20,7 @@ import { showLimitRoomModalStore } from "../Stores/ModalStore";
import { locales } from "../i18n/i18n-util";
import type { Locales } from "../i18n/i18n-types";
import { setCurrentLocale } from "../i18n/locales";
import type { World } from "./World";
class ConnectionManager {
private localUser!: LocalUser;
@ -384,7 +385,7 @@ class ConnectionManager {
userIsConnected.set(true);
}
async getWorlds() {
async getWorlds() : Promise<World[]> {
const token = localUserStore.getAuthToken();
if (!token) {
throw new Error("No token provided");

View File

@ -913,6 +913,6 @@ div.action.danger p.action-body{
supported by Chrome, Edge, Opera and Firefox */
}
.emote-menu .emoji-picker .emoji-picker__emoji {
.emoji-picker__emojis {
font-family: 'Twemoji Mozilla' !important;
}