refactor(scrcpy) make large enums tree-shakeable (#798)

This commit is contained in:
Simon Chan 2025-09-11 10:31:01 +08:00 committed by GitHub
parent b2512856be
commit 27a6614680
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
89 changed files with 1056 additions and 1089 deletions

View file

@ -3,7 +3,5 @@ export function toLocalUint8Array(value: Uint8Array): Uint8Array<ArrayBuffer> {
return value as Uint8Array<ArrayBuffer>;
}
const copy = new Uint8Array(value.length);
copy.set(value);
return copy;
return new Uint8Array(value);
}