mirror of
https://github.com/timvisee/send.git
synced 2025-10-04 10:09:17 +02:00
remove browser dependency on "buffer"
This commit is contained in:
parent
72d2d6ef31
commit
7130c2e7b0
8 changed files with 304 additions and 65 deletions
|
@ -272,7 +272,15 @@ function setTranslate(t) {
|
|||
translate = t;
|
||||
}
|
||||
|
||||
function concat(b1, b2) {
|
||||
const result = new Uint8Array(b1.length + b2.length);
|
||||
result.set(b1, 0);
|
||||
result.set(b2, b1.length);
|
||||
return result;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
concat,
|
||||
locale,
|
||||
fadeOut,
|
||||
delay,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue