mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Update Proxy / CDN / Download Hosts
Chore: minor infra changes Update CDN Hosts
This commit is contained in:
@@ -9,7 +9,7 @@ export function appendArrayInPlace<T>(dest: T[], source: T[]) {
|
||||
dest.push.apply(dest, source);
|
||||
} else {
|
||||
while (itemsLeft > 0) {
|
||||
const pushCount = Math.min(MAX_BLOCK_SIZE, itemsLeft);
|
||||
const pushCount = itemsLeft > MAX_BLOCK_SIZE ? MAX_BLOCK_SIZE : itemsLeft;
|
||||
const subSource = source.slice(offset, offset + pushCount);
|
||||
// eslint-disable-next-line prefer-spread -- performance
|
||||
dest.push.apply(dest, subSource);
|
||||
|
||||
Reference in New Issue
Block a user