From b51b5dcbc81fb9c21f7adf26c763b515e2257243 Mon Sep 17 00:00:00 2001 From: ada Date: Mon, 5 Aug 2024 19:21:11 -0600 Subject: [PATCH] WiiU support so broken so temp thing --- index.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index bdbf132..fef31ac 100644 --- a/index.js +++ b/index.js @@ -43,7 +43,6 @@ function createTable() { }); } - async function checkStatus(url) { try { const startTime = Date.now(); @@ -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) => {