g.js
g.js copied to clipboard
Fix JSHint error. Fix PathKit support for web workers
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
~~I found an issue, so I'm going to mark this as a draft~~ false alarm, the issue was external