mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
add bs58 as a dependency
override some of its imports as they would just add a lot of nodejs fluff that needs stubbing out for a browser.
This commit is contained in:
parent
ff09f82f81
commit
f798a8bca4
@ -1,5 +1,5 @@
|
||||
module.exports = class Buffer {
|
||||
static isBuffer() {return false;}
|
||||
static isBuffer(array) {return array instanceof Uint8Array;}
|
||||
static from(arrayBuffer) {return arrayBuffer;}
|
||||
static allocUnsafe(size) {return Buffer.alloc(size);}
|
||||
static alloc(size) {return new Uint8Array(size);}
|
||||
|
Loading…
Reference in New Issue
Block a user