From 15ff775a689a855d225f0f8dee074a310458aa06 Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Wed, 12 Oct 2022 22:02:13 +0200 Subject: [PATCH] Fix syntax error --- Public/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Public/api.js b/Public/api.js index 7f099c4..a76c563 100644 --- a/Public/api.js +++ b/Public/api.js @@ -73,7 +73,7 @@ async function resumeSessionRequest(token) { async function performGetCurrentTableRequest(token) { return fetch(apiPath + "/player/table", { method: 'POST', - headers: [headerKeyToken]: token, + headers: { [headerKeyToken]: token }, }) .then(convertServerResponse) .then(convertJsonResponse)