W3C home > Mailing lists > Public > public-device-apis-log@w3.org > February 2018

Re: [accelerometer] Should we throw exception when screen coordinate system is not supported?

From: Alexander Shalamov via GitHub <sysbot+gh@w3.org>
Date: Wed, 07 Feb 2018 13:51:10 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-363774679-1518011469-sysbot+gh@w3.org>
If device has no screen, i.e., `window === null`, then we can throw immediately. In other cases, `window.screen.orientation` is sync, and available on all platforms, except Safari that has `window.orientation`.

I'm not aware of the cases / platforms where we would need to handle such errors asynchronously. We can keep this issue open, get more data and find solution after research is done.

GitHub Notification of comment by alexshalamov
Please view or discuss this issue at https://github.com/w3c/accelerometer/issues/35#issuecomment-363774679 using your GitHub account
Received on Wednesday, 7 February 2018 13:51:18 UTC

This archive was generated by hypermail 2.4.0 : Monday, 4 July 2022 12:47:55 UTC