-
Notifications
You must be signed in to change notification settings - Fork 323
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
Check for cross-origin rather than cross-domain when enabling synthetic devicemotion events. #271
Comments
thanks for filing. this is useful information. couldn't you instead replace all this with btw, if you need to keep the other code, Util.getOriginFromUrl = function (url) { return new URL(url).origin; }; or to support older browsers: var a = document.createElement('a');
Util.getOriginFromUrl = function (url) { a.href = url; return a.origin; }; |
It may also be useful to check |
Fixed in 71eb215 in 0.10.1 |
Listening to synthetic devicemotion events is currently enabled on iOS when polyfill is used a inside cross-domain but iOS blocks devicemotion events for cross-origin iframes, where protocol, domain and port are taken into consideration.
Util.isInsideCrossDomainIFrame
could be changed intoUtil.isInsideCrossOriginIFrame
in the following way:The text was updated successfully, but these errors were encountered: