Spaces:
Running
Running
Update app.js
Browse files
app.js
CHANGED
@@ -13,7 +13,7 @@ app.get('/', (req, res) => {
|
|
13 |
const userAgent = req.headers.get('user-agent');
|
14 |
|
15 |
// Increment hit only if not from fetch
|
16 |
-
if (!userAgent ||
|
17 |
hitCount++;
|
18 |
}
|
19 |
|
|
|
13 |
const userAgent = req.headers.get('user-agent');
|
14 |
|
15 |
// Increment hit only if not from fetch
|
16 |
+
if (!userAgent || userAgent.toLowerCase().includes('fetch')) {
|
17 |
hitCount++;
|
18 |
}
|
19 |
|