Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanMillett committed Nov 15, 2024
1 parent 8851414 commit 937fad7
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions wwwroot/js/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ async function logTraffic()
}
}

console.log(JSON.stringify(trafficMessage));

const response = await fetch("https://vetra.jordanmillett.net/api/traffic", {
method: 'POST',
headers: {
Expand All @@ -67,16 +65,9 @@ async function logTraffic()
body: JSON.stringify(trafficMessage),
});

if (response.ok)
{
console.log('Traffic data sent successfully');
} else
{
console.error('Failed to send traffic data', response.statusText);
}
} catch (error)
} catch
{
console.error('Error collecting or sending traffic data:', error);

}

}
Expand Down

0 comments on commit 937fad7

Please sign in to comment.