Skip to content

Commit

Permalink
Remove global accesses. See feross#347
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Mar 1, 2024
1 parent 5ac5ac4 commit 72411e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ exports.constants = {
MAX_STRING_LENGTH: K_STRING_MAX_LENGTH
}

exports.Blob = global.Blob
exports.File = global.File
exports.atob = global.atob
exports.btoa = global.btoa
exports.Blob = typeof Blob !== 'undefined' ? Blob : undefined
exports.File = typeof File !== 'undefined' ? File : undefined
exports.atob = typeof atob !== 'undefined' ? atob : undefined
exports.btoa = typeof btoa !== 'undefined' ? btoa : undefined

/**
* If `Buffer.TYPED_ARRAY_SUPPORT`:
Expand Down

0 comments on commit 72411e0

Please sign in to comment.