fix probability url
This commit is contained in:
parent
98579ca17f
commit
f631735783
@ -79,7 +79,7 @@
|
|||||||
document.getElementById('toolPanel').innerHTML = '';
|
document.getElementById('toolPanel').innerHTML = '';
|
||||||
document.getElementById('toolPanel').appendChild(imgElement);
|
document.getElementById('toolPanel').appendChild(imgElement);
|
||||||
|
|
||||||
fetch('https://gammaworld.gmgauthier.com/coinflip')
|
fetch('${window.BASE_URL}/coinflip')
|
||||||
.then(response => response.text())
|
.then(response => response.text())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
let imgSrc = 'img/' + data.replace(/\"/g, '') + '.jpg';
|
let imgSrc = 'img/' + data.replace(/\"/g, '') + '.jpg';
|
||||||
@ -107,12 +107,7 @@
|
|||||||
imgElement.style.marginRight = 'auto';
|
imgElement.style.marginRight = 'auto';
|
||||||
resultSection.appendChild(imgElement);
|
resultSection.appendChild(imgElement);
|
||||||
|
|
||||||
fetch('https://gammaworld.gmgauthier.com/roll/chance', {
|
fetch('${window.BASE_URL}/dice/probability')
|
||||||
method: 'GET',
|
|
||||||
headers: {
|
|
||||||
'Content-Type': 'application/json',
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw response;
|
throw response;
|
||||||
|
Loading…
Reference in New Issue
Block a user