nodebox / g.js

Graphic objects JS library.
https://g.js.org/
MIT License
75 stars 12 forks source link

Fix JSHint error. Fix PathKit support for web workers #17

Open rafern opened 2 years ago

rafern commented 2 years ago

When in a web worker, g.js fails to detect PathKit because it only checks in the window object, which is not available in web workers. This PR makes it also check in the self object. An better solution in the future would be to make this configurable via a new API

rafern commented 2 years ago

I found an issue, so I'm going to mark this as a draft false alarm, the issue was external