prettier
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export interface World {
|
||||
roomId: string;
|
||||
player: string[];
|
||||
roomId: string;
|
||||
player: string[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user