Closed dpuscher closed 7 years ago
I realized that the check if a browser supports the performance object fails (e.g. in Safari 7: ReferenceError: Can't find variable: performance). If checking explicitly the presence of performance on the window object this should be fail-safe.
ReferenceError: Can't find variable: performance
performance
window
I'd like to keep this working for worker contexts. Can you use self instead of window?
Sure, I updated my commit.
I realized that the check if a browser supports the performance object fails (e.g. in Safari 7:
ReferenceError: Can't find variable: performance
). If checking explicitly the presence ofperformance
on thewindow
object this should be fail-safe.