9 lines
180 B
TypeScript
9 lines
180 B
TypeScript
|
/**
|
||
|
* Sets the player id cookie
|
||
|
*
|
||
|
* @param playerId the player id to set
|
||
|
*/
|
||
|
export function setPlayerIdCookie(playerId: string) {
|
||
|
document.cookie = `playerId=${playerId}`;
|
||
|
}
|