Skip to content

Commit 2c0a545

Browse files
authored
Update browser.js shim to use self instead of window
This allows it to work in web worker environments, helping to fix jsdom's usage of this package there. See jsdom/jsdom#1592 (comment)
1 parent f64a4c3 commit 2c0a545

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
/* eslint-env browser */
2-
module.exports = window.FormData;
2+
module.exports = self.FormData;

0 commit comments

Comments
 (0)