Skip to content

Commit e28745a

Browse files
fix: blob detection
1 parent bc6e2db commit e28745a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/engine.io-client/test/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ if (env.browser) {
77
require("./node");
88
}
99

10-
const Blob = require("blob");
11-
1210
require("./engine.io-client");
1311
require("./socket");
1412
require("./transport");
@@ -23,6 +21,6 @@ if (typeof ArrayBuffer !== "undefined") {
2321
}
2422

2523
// Blob is available in Node.js since v18, but not yet supported by the `engine.io-parser` package
26-
if (Blob && env.browser) {
24+
if (typeof Blob === "function" && env.browser) {
2725
require("./blob");
2826
}

0 commit comments

Comments
 (0)