We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2eb8861 commit 8f734efCopy full SHA for 8f734ef
build/files.js
@@ -179,7 +179,7 @@ const headRegexp = /(^module.exports = \w+;?)/m
179
/(?:var|const) Buffer = require\('safe-buffer'\)\.Buffer;/
180
, `
181
const Buffer = require('safe-buffer').Buffer
182
- const OurUint8Array = global.Uint8Array || function () {}
+ const OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {}
183
function _uint8ArrayToBuffer(chunk) {
184
return Buffer.from(chunk);
185
}
0 commit comments