From 46a8f8ef84a34b86db9fc16e96d799d399e885f9 Mon Sep 17 00:00:00 2001 From: Settel Date: Fri, 13 Aug 2021 00:43:16 +0200 Subject: [PATCH] client: start game --- client/src/plugins/engine/startGame.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/src/plugins/engine/startGame.js b/client/src/plugins/engine/startGame.js index 93f1f72..979294a 100644 --- a/client/src/plugins/engine/startGame.js +++ b/client/src/plugins/engine/startGame.js @@ -1,3 +1,7 @@ export default async function() { - alert('start game!') + const { store } = this.context + + await this.callApi('/api/startGame', { + g: store.state.engine.user?.game, + }) }