Added leading slash in URL

Same here, otherwise it will throw an error because it cant find the fetch URL path
pull/3298/head
Fabian Beer 6 years ago committed by GitHub
parent fcfad5ae6b
commit 8174a19ac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,7 +2,7 @@
let promise = getRandomNumber();
async function getRandomNumber() {
const res = await fetch(`tutorial/random-number`);
const res = await fetch(`/tutorial/random-number`);
const text = await res.text();
if (res.ok) {

Loading…
Cancel
Save