mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-04 02:09:18 +02:00
refactor(scrcpy) make large enums tree-shakeable (#798)
This commit is contained in:
parent
b2512856be
commit
27a6614680
89 changed files with 1056 additions and 1089 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue