mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 08:23:35 +00:00
Merge branch 'main' into feat/messaging-example
This commit is contained in:
commit
14db9f59d0
5 files changed
+162
-56
No files matched your search
@@ -1,3 +1,15 @@
|
||||
import Buffer from 'buffer';
|
||||
|
||||
/**
|
||||
* Polyfill for Buffer in browser environment
|
||||
*
|
||||
* Many Node.js libraries like isomorphic-git and bitcoinjs-lib expect Buffer to be globally available.
|
||||
* This polyfill makes the buffer package's Buffer available globally.
|
||||
*/
|
||||
if (!globalThis.Buffer) {
|
||||
globalThis.Buffer = Buffer.Buffer;
|
||||
}
|
||||
|
||||
/**
|
||||
* Polyfill for AbortSignal.any()
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user