Skip to content

Commit

Permalink
fix signal crash regression
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed Jan 31, 2025
1 parent 92ce4dd commit 8766eaa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/react/ServersListProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,9 @@ const Inner = ({ hidden, customServersList }: { hidden?: boolean, customServersL
try {
lastRequestStart = Date.now()
if (signal.aborted) return
const response = await fetch(`https://api.mcstatus.io/v2/status/java/${server.ip}`, { signal })
const response = await fetch(`https://api.mcstatus.io/v2/status/java/${server.ip}`, {

Check failure on line 238 in src/react/ServersListProvider.tsx

View workflow job for this annotation

GitHub Actions / build-and-deploy

Trailing spaces not allowed
// signal // DONT ADD SIGNAL IT WILL CRUSH JS RUNTIME
})
const data: ServerResponse = await response.json()
const versionClean = data.version?.name_raw.replace(/^[^\d.]+/, '')

Expand Down

0 comments on commit 8766eaa

Please sign in to comment.