- From: Makoto Kato <notifications@github.com>
- Date: Sun, 30 Jan 2022 20:33:44 -0800
- To: w3c/screen-orientation <screen-orientation@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 31 January 2022 04:33:57 UTC
(If this is already discussed, please close this) When I look this spec, I cannot find feature detection section. Even If `orientation.lock` isn't supported, Blink and Gecko have this method in `orientation`. Then when calling it, [NotSupportedError](https://w3c.github.io/screen-orientation/#apply-an-orientation-lock) is throw if browser doesn't support it. For feature detection of `orientation.lock`, is there a way of feature detection without using `orientation.lock` like following? And I hope that we add feature detection section for `lock`. ```javascript async function isLockSupport() { try { await orientation.lock('any'); orientation.unlock(); return true; } catch (e) { } return false; } ``` -- Reply to this email directly or view it on GitHub: https://github.com/w3c/screen-orientation/issues/206 You are receiving this because you are subscribed to this thread. Message ID: <w3c/screen-orientation/issues/206@github.com>
Received on Monday, 31 January 2022 04:33:57 UTC