Skip to content

Commit a6dfa72

Browse files
fix(formdata): added a check to make sure the FormData class is available in the browser's global scope; (#5545)
1 parent c19f7bf commit a6dfa72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
'use strict';
22

3-
export default FormData;
3+
export default typeof FormData !== 'undefined' ? FormData : null;

0 commit comments

Comments
 (0)