tiagosiebler / binance

Node.js & JavaScript SDK for Binance REST APIs & WebSockets, with TypeScript & browser support, integration tests, beautification & more.
MIT License
758 stars 266 forks source link

use globalThis instead of window for web worker support #339

Closed Sylchi closed 1 year ago

Sylchi commented 1 year ago

Summary

web workers fail with window is not defined error, we just use globalThis

fixes https://github.com/tiagosiebler/binance/issues/280

tiagosiebler commented 1 year ago

Released in latest version (v2.8.2). Thanks