From f631735783e52f5cd0751ff31a26681b68d960c3 Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Mon, 1 Jul 2024 16:46:49 +0100 Subject: [PATCH] fix probability url --- web/index.html | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/web/index.html b/web/index.html index 7e81218..7994dd3 100644 --- a/web/index.html +++ b/web/index.html @@ -79,7 +79,7 @@ document.getElementById('toolPanel').innerHTML = ''; document.getElementById('toolPanel').appendChild(imgElement); - fetch('https://gammaworld.gmgauthier.com/coinflip') + fetch('${window.BASE_URL}/coinflip') .then(response => response.text()) .then(data => { let imgSrc = 'img/' + data.replace(/\"/g, '') + '.jpg'; @@ -107,12 +107,7 @@ imgElement.style.marginRight = 'auto'; resultSection.appendChild(imgElement); - fetch('https://gammaworld.gmgauthier.com/roll/chance', { - method: 'GET', - headers: { - 'Content-Type': 'application/json', - }, - }) + fetch('${window.BASE_URL}/dice/probability') .then((response) => { if (!response.ok) { throw response;