Skip to content

Commit

Permalink
fix: blob detection
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Oct 21, 2024
1 parent bc6e2db commit e28745a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/engine.io-client/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ if (env.browser) {
require("./node");
}

const Blob = require("blob");

require("./engine.io-client");
require("./socket");
require("./transport");
Expand All @@ -23,6 +21,6 @@ if (typeof ArrayBuffer !== "undefined") {
}

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

0 comments on commit e28745a

Please sign in to comment.