Browse Source

Chore: fix user-agent list

SukkaW 2 years ago
parent
commit
998b6e4b24
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Build/build-speedtest-domainset.ts

+ 1 - 1
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<string[]>()).then(userAgents => userAgents.filter(ua => ua.startsWith('Mozilla/5.0 ')));
 
 const querySpeedtestApi = async (keyword: string): Promise<Array<string | null>> => {