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 bed7ffa commit 2f2a3ecCopy full SHA for 2f2a3ec
build/files.js
@@ -133,7 +133,7 @@ const headRegexp = /(^module.exports = \w+;?)/m
133
/(?:var|const) (?:{ )Buffer(?: }) = require\('buffer'\)(?:\.Buffer)?;/g
134
, `
135
const Buffer = require('buffer').Buffer
136
- const OurUint8Array = global.Uint8Array || function () {}
+ const OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {}
137
function _uint8ArrayToBuffer(chunk) {
138
return Buffer.from(chunk);
139
}
0 commit comments