display game id on click of name

This commit is contained in:
Ayo 2019-12-08 20:24:08 +08:00
parent 554708ec98
commit d83d148062

View file

@ -108,6 +108,7 @@ export class LeaderBoardService {
nameElement.style.cursor = 'pointer';
nameElement.style.fontWeight = 'bold';
nameElement.style.fontStyle = 'italic';
nameElement.onmousedown = () => console.log(game.id);
const indexElement = document.createElement('div');
indexElement.innerText = `#${i++}`;