Skip to content

Commit

Permalink
WiiU support so broken so temp thing
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdada committed Aug 6, 2024
1 parent 1b90e7f commit b51b5dc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ function createTable() {
});
}


async function checkStatus(url) {
try {
const startTime = Date.now();
Expand Down Expand Up @@ -86,6 +85,14 @@ function getStatusColor(status) {
}

app.get('/', async (req, res) => {
const userAgent = req.get('User-Agent');

// Check if the user agent includes "WiiU"
if (userAgent && userAgent.includes('WiiU')) {
res.send('Hello, WiiU user');
return;
}

try {
const statusPromises = sites.map(async (site) => {
return new Promise((resolve, reject) => {
Expand Down

0 comments on commit b51b5dc

Please sign in to comment.