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
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 theself
object. An better solution in the future would be to make this configurable via a new API