fix fetch json
This commit is contained in:
@ -241,7 +241,7 @@
|
|||||||
<script>
|
<script>
|
||||||
Array.prototype.choice = function () { return this[Math.floor(Math.random() * this.length)] }
|
Array.prototype.choice = function () { return this[Math.floor(Math.random() * this.length)] }
|
||||||
|
|
||||||
fetch("https://adrien.malingrey.fr/dev/groscon/noms.json")
|
fetch("noms.json")
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(json => {
|
.then(json => {
|
||||||
noms = json
|
noms = json
|
||||||
|
|||||||
Reference in New Issue
Block a user