mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2025-12-11 22:16:44 +03:00
sso: polyfill buffer for browser
This commit is contained in:
5
src/lib/polyfills/buffer.ts
Normal file
5
src/lib/polyfills/buffer.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Buffer } from "buffer";
|
||||
|
||||
if (typeof globalThis !== "undefined" && (globalThis as any).Buffer === undefined) {
|
||||
(globalThis as any).Buffer = Buffer;
|
||||
}
|
||||
Reference in New Issue
Block a user