Skip to content

Fix isBrowser detection#1568

Merged
shaurya947 merged 4 commits intomui:masterfrom
izziaraffaele:fix/is-browser
Sep 29, 2015
Merged

Fix isBrowser detection#1568
shaurya947 merged 4 commits intomui:masterfrom
izziaraffaele:fix/is-browser

Conversation

@izziaraffaele
Copy link
Copy Markdown
Contributor

Taking inspiration from https://github.com/akiran/can-use-dom I integrated a better way to handle environment detection.

It fixes an issue I opened yesterday #1551

@oliviertassinari
Copy link
Copy Markdown
Member

Can we create a new utils file to prevent the duplication of the logic?

@izziaraffaele
Copy link
Copy Markdown
Contributor Author

There it is. You can close the issue I opened once you merge the PR

src/left-nav.jsx Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const isBrowser

@izziaraffaele
Copy link
Copy Markdown
Contributor Author

Hey @oliviertassinari is there still something wrong?

@oliviertassinari
Copy link
Copy Markdown
Member

I can't merge, @hai-cea can. Looks like he is on holidays :/

shaurya947 added a commit that referenced this pull request Sep 29, 2015
@shaurya947 shaurya947 merged commit bca9693 into mui:master Sep 29, 2015
@shaurya947
Copy link
Copy Markdown
Contributor

Done! Thanks @izziaraffaele

@izziaraffaele
Copy link
Copy Markdown
Contributor Author

@shaurya947 I do what I can :)

@izziaraffaele
Copy link
Copy Markdown
Contributor Author

@shaurya947 Could you please update the npm version? Somehow in 0.12.1 I don't have this PR

@shaurya947
Copy link
Copy Markdown
Contributor

@izziaraffaele might have to wait a couple more days before another 0.12.x release.

@zannager zannager added the docs Improvements or additions to the documentation. label Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to the documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants