mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-10-05 06:11:02 +02:00
ff09f82f81
override some of its imports as they would just add a lot of nodejs fluff that needs stubbing out for a browser.
7 lines
236 B
JavaScript
7 lines
236 B
JavaScript
module.exports = class Buffer {
|
|
static isBuffer() {return false;}
|
|
static from(arrayBuffer) {return arrayBuffer;}
|
|
static allocUnsafe(size) {return Buffer.alloc(size);}
|
|
static alloc(size) {return new Uint8Array(size);}
|
|
};
|