Skip to content
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

is IE10–11 not edge #189

Open
Mouvedia opened this issue Jun 4, 2018 · 1 comment
Open

is IE10–11 not edge #189

Mouvedia opened this issue Jun 4, 2018 · 1 comment

Comments

@Mouvedia
Copy link

Mouvedia commented Jun 4, 2018

// opt in IE (even 11)
'ActiveXObject' in self &&
// https://bugs.chromium.org/p/chromium/issues/detail?id=364512
self.navigator.msPointerEnabled

NB: web worker compatible

@Mouvedia
Copy link
Author

cross-browser version

// exclude old versions of Opera that supported ActiveXObject
self.hasOwnProperty &&
// doesn't throw on IE5
self.hasOwnProperty('ActiveXObject') &&
// readonly on IE
self.navigator.msPointerEnabled

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

No branches or pull requests

1 participant