fix probability url
This commit is contained in:
		
							parent
							
								
									98579ca17f
								
							
						
					
					
						commit
						f631735783
					
				@ -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;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user