Created by: whymatter
Fixes #7627 (closed)
I like to provide this Pull Request as a proposal for my issue about using the polyfills inside a WebWorker
.
The changes I made extend the checks for the window
objects by a check for the self
object. And also disable the raf
polyfill when no window object is defined. (Since a WebWorker should not require AnimationFrames
...)