hzia
01/10/2024, 2:38 PMts
fetch('WORKER_URL', {method: 'GET'}).then((response) => response.json()).then((json) => {
console.log(json);
}).catch((error) => {
console.error(error);
});
My worker is currently just default with the Response Hello world due to not knowing what to do.nora
01/11/2024, 6:43 AMnora
01/11/2024, 6:44 AMenv
parameter from the fetch
export. There's an example in the link above.hzia
01/11/2024, 11:15 AMhzia
01/11/2024, 2:45 PM