remnantchat/src/polyfills.ts

9 lines
146 B
TypeScript
Raw Normal View History

2022-11-28 01:08:38 +00:00
import { Buffer } from 'buffer'
// @ts-ignore
import process from 'process/browser'
// Polyfill
window.Buffer = Buffer
window.process = process