mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 17:20:35 +08:00
Sunsetting UNPKG
This commit is contained in:
parent
aa80210795
commit
668f53be76
@ -20,8 +20,8 @@ import * as SetHelpers from 'mnemonist/set';
|
|||||||
const s = new Sema(2);
|
const s = new Sema(2);
|
||||||
|
|
||||||
const latestTopUserAgentsPromise = fsFetchCache.apply(
|
const latestTopUserAgentsPromise = fsFetchCache.apply(
|
||||||
'https://unpkg.com/top-user-agents@latest/src/desktop.json',
|
'https://cdn.jsdelivr.net/npm/top-user-agents@latest/src/desktop.json',
|
||||||
() => fetchWithRetry('https://unpkg.com/top-user-agents@latest/src/desktop.json')
|
() => fetchWithRetry('https://cdn.jsdelivr.net/npm/top-user-agents@latest/src/desktop.json')
|
||||||
.then(res => res.json())
|
.then(res => res.json())
|
||||||
.then((userAgents: string[]) => userAgents.filter(ua => ua.startsWith('Mozilla/5.0 '))),
|
.then((userAgents: string[]) => userAgents.filter(ua => ua.startsWith('Mozilla/5.0 '))),
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user