reduce data sent to clients

This commit is contained in:
Zutatensuppe 2020-12-24 15:29:32 +01:00
parent cac1f02557
commit 1025d42ea2
4 changed files with 63 additions and 46 deletions

View file

@ -83,7 +83,7 @@ export default {
(or select from below)
</span>
</div>
<span class="btn" :class="" @click="newGame">Start new game</span>
<span class="btn" :class="" @click="onNewGameClick">Start new game</span>
<h1>Image lib</h1>
<div>
@ -131,7 +131,7 @@ export default {
mediaImgUploaded(j) {
this.image = j.image
},
async newGame() {
async onNewGameClick() {
const res = await fetch('/newgame', {
method: 'post',
headers: {