diff --git a/src/webpage/service.ts b/src/webpage/service.ts index 5c2f0a3..7209cf4 100644 --- a/src/webpage/service.ts +++ b/src/webpage/service.ts @@ -30,6 +30,7 @@ async function checkCache(){ } console.log(lastcache); fetch("/getupdates").then(async data=>{ + if(!data.ok) return; const text = await data.clone().text(); console.log(text, lastcache); if(lastcache !== text){