class Contact {
id
name
phone
remove()
save()
render() => `<form></form>`
}
class PhoneBook {
contacts
render() => `<table></table>`
}
async function StartGame() {
const r = await Extension.curNet()
....
if (currBattle == null) {
const sendRes = await Extension.sendTransaction
}
retrun sendRes
}
Или
function StartGame() {
return Extension.curNet().then(r => {
...
return Extension.sendTransaction
}).then(r => {
retrun r
})
}
.link:hover .hidden{
display: block;
}