mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-24 10:28:03 +01:00
Replace buffer.slice() with buffer.subarray()
This commit is contained in:
@@ -126,7 +126,7 @@ async function fetchSegment(
|
||||
let slice: ArrayBufferView;
|
||||
// Trim duplicate bytes from start of last segment
|
||||
if (segmentRange.sliceStart > 0) {
|
||||
slice = data.slice(segmentRange.sliceStart);
|
||||
slice = data.subarray(segmentRange.sliceStart);
|
||||
} else {
|
||||
slice = data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user