mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-03-09 04:13:45 +00:00
Add tracker health badges for magnets
This commit is contained in:
17
js/bufferPolyfill.js
Normal file
17
js/bufferPolyfill.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import { Buffer } from "https://esm.sh/buffer@6.0.3?bundle";
|
||||
|
||||
const globalScope = typeof globalThis !== "undefined" ? globalThis : window;
|
||||
|
||||
if (globalScope && !globalScope.Buffer) {
|
||||
globalScope.Buffer = Buffer;
|
||||
}
|
||||
|
||||
if (globalScope && !globalScope.global) {
|
||||
globalScope.global = globalScope;
|
||||
}
|
||||
|
||||
if (globalScope && !globalScope.process) {
|
||||
globalScope.process = { env: {} };
|
||||
}
|
||||
|
||||
export { Buffer };
|
||||
Reference in New Issue
Block a user