17 lines
513 B
JavaScript
17 lines
513 B
JavaScript
export async function load({ params }) {
|
|
let authid=await Edge.Client.rpc("getAuthid");
|
|
let authpseudo=await Edge.Client.rpc("getAuthpseudo");
|
|
let authisuser=await Edge.Client.rpc("getAuthisuser");
|
|
let player=await Edge.Client.rpc("initPlayer",{"_id":authid,"name":authpseudo,"isuser":(authisuser!="anon")});
|
|
|
|
let partys = await Edge.Client.rpc("getPartyswait").catch(err => console.error(err));
|
|
|
|
// Return data
|
|
return {
|
|
params,
|
|
partys,
|
|
player,
|
|
};
|
|
}
|
|
|
|
|