fix probability url

This commit is contained in:
Greg Gauthier 2024-07-01 16:46:49 +01:00
parent 98579ca17f
commit f631735783

View File

@ -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;