11 lines
355 B
JavaScript
11 lines
355 B
JavaScript
|
export async function load() {
|
||
|
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")});
|
||
|
|
||
|
return {
|
||
|
player,
|
||
|
};
|
||
|
}
|