From 998b6e4b241d4ae347a349a58063d8f81e45e143 Mon Sep 17 00:00:00 2001 From: SukkaW Date: Fri, 5 Jan 2024 18:27:02 +0800 Subject: [PATCH] Chore: fix user-agent list --- Build/build-speedtest-domainset.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Build/build-speedtest-domainset.ts b/Build/build-speedtest-domainset.ts index 9f0e1edf..a94415a2 100644 --- a/Build/build-speedtest-domainset.ts +++ b/Build/build-speedtest-domainset.ts @@ -16,7 +16,7 @@ import { TTL, deserializeArray, fsCache, serializeArray } from './lib/cache-file const s = new Sema(2); -const latestTopUserAgentsPromise = fetchWithRetry('https://unpkg.com/top-user-agents@latest/index.json') +const latestTopUserAgentsPromise = fetchWithRetry('https://unpkg.com/top-user-agents@latest/src/desktop.json') .then(res => res.json()).then(userAgents => userAgents.filter(ua => ua.startsWith('Mozilla/5.0 '))); const querySpeedtestApi = async (keyword: string): Promise> => {