fix svelte world
This commit is contained in:
parent
a2e50dcd95
commit
88e20290bd
@ -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;
|
||||
|
@ -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");
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user