X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fpolyfills.ts;h=eec30760df211f2c3eee5c31301f5770cc98ef22;hb=769ac6c11fe3e8d79643032daa784a60116a6630;hp=423a7b91589f559649ed309edbf0c04d70b1cf7b;hpb=8be1afa12b700b93ed92365cab05c0ef81d643aa;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/polyfills.ts b/client/src/polyfills.ts index 423a7b915..eec30760d 100644 --- a/client/src/polyfills.ts +++ b/client/src/polyfills.ts @@ -80,3 +80,9 @@ import 'zone.js/dist/zone' // Included with Angular CLI. /*************************************************************************************************** * APPLICATION IMPORTS */ + +// global/process polyfills + +;(window as any).global = window; +;(window as any).process = require('process/'); +;(window as any).Buffer = require('buffer/').Buffer;