remnantchat/src/polyfills.ts
2022-11-28 20:45:45 -06:00

9 lines
146 B
TypeScript

import { Buffer } from 'buffer'
// @ts-ignore
import process from 'process/browser'
// Polyfill
window.Buffer = Buffer
window.process = process