This commit is contained in:
_Bastler
2022-01-26 12:44:08 +01:00
parent 31f6847b53
commit e3b58a0d56
23 changed files with 131 additions and 94 deletions
+1 -3
View File
@@ -360,7 +360,6 @@ class ConnectionManager {
}
async getWorlds() {
const token = localUserStore.getAuthToken();
if (!token) {
throw new Error("No token provided");
@@ -368,8 +367,7 @@ class ConnectionManager {
const { worlds } = await Axios.get(`${PUSHER_URL}/worlds`, { params: { token } }).then((res) => {
return res.data;
}
);
});
return worlds;
}
+1 -1
View File
@@ -167,7 +167,7 @@ export class Room {
//const match = /@\/([^/]+)\/([^/]+)\/.+/.exec(this.id);
//if (!match) throw new Error('Could not extract instance from "' + this.id + '"');
//this.instance = match[1] + "/" + match[2];
this.instance = ""
this.instance = "";
return this.instance;
}
}
+2 -2
View File
@@ -1,4 +1,4 @@
export interface World {
roomId: string;
player: string[];
roomId: string;
player: string[];
}