Skip to content

fix: 'PerformanceObserver is undefined' on Edge #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 10, 2018

Conversation

michaeldfallen
Copy link
Contributor

Edge exposes window.chrome, meaning that using Boolean(window.chrome) to test for the browser being chrome alone is not enough.

To fix this I've also tested for the existence of PerformanceObserver on window so that we only try to use PerformanceObserver if it is defined.

Edge exposes `window.chrome` with a single `app` property, meaning that using
`Boolean(window.chrome)` to test for the browser being chrome alone is not enough.
@michaeldfallen
Copy link
Contributor Author

@Zizzamia can you review?

@Zizzamia Zizzamia added the fix label Jul 6, 2018
@Zizzamia Zizzamia self-requested a review July 6, 2018 20:52
@Zizzamia Zizzamia added this to the v0.8.0 milestone Jul 6, 2018
@Zizzamia Zizzamia merged commit 34b2b5a into Zizzamia:master Jul 10, 2018
@Zizzamia
Copy link
Owner

Zizzamia commented Jul 10, 2018

Amazing, coming up soon with v0.8.0
🔥 🚀 🌕

Grazie Mille 🙏

@michaeldfallen
Copy link
Contributor Author

michaeldfallen commented Jul 10, 2018

🙌 Woo, thanks!

@Zizzamia
Copy link
Owner

@michaeldfallen released Perfume.js v0.8.0
Grazie mille for your contribution 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants