Skip to content

Commit 3772c8f

Browse files
authored
fix(blob): added a check to make sure the Blob class is available in the browser's global scope; (#5548)
1 parent a3b246c commit 3772c8f

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
'use strict'
2+
3+
export default typeof Blob !== 'undefined' ? Blob : null

‎lib/platform/browser/index.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import URLSearchParams from './classes/URLSearchParams.js'
22
import FormData from './classes/FormData.js'
3+
import Blob from './classes/Blob.js'
34

45
/**
56
* Determine if we're running in a standard browser environment

0 commit comments

Comments
 (0)