2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-05 16:42:32 +03:00

fix(blob): added a check to make sure the Blob class is available in the browser's global scope; (#5548)

This commit is contained in:
lcysgsg
2023-02-23 03:55:45 +08:00
committed by GitHub
parent a3b246c9de
commit 3772c8fe74
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
'use strict'
export default typeof Blob !== 'undefined' ? Blob : null
+1
View File
@@ -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