Skip to content

Commit

Permalink
fix(blob): added a check to make sure the Blob class is available in …
Browse files Browse the repository at this point in the history
…the browser's global scope; (#5548)
  • Loading branch information
lcysgsg committed Feb 22, 2023
1 parent a3b246c commit 3772c8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/platform/browser/classes/Blob.js
@@ -0,0 +1,3 @@
'use strict'

export default typeof Blob !== 'undefined' ? Blob : null
1 change: 1 addition & 0 deletions lib/platform/browser/index.js
@@ -1,5 +1,6 @@
import URLSearchParams from './classes/URLSearchParams.js'
import FormData from './classes/FormData.js'
import Blob from './classes/Blob.js'

/**
* Determine if we're running in a standard browser environment
Expand Down

0 comments on commit 3772c8f

Please sign in to comment.