Re: [w3c/screen-orientation] Feature detection of orientation.lock (Issue #206)

[`Window.orientation`](https://developer.mozilla.org/en-US/docs/Web/API/Window/orientation) is deprecated. You should instead use [`Screen.orientation`](https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation), which you can properly feature-detect via the snippet below:

```js
if ('ScreenOrientation' in window) {
  // Supported.
}
`

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/screen-orientation/issues/206#issuecomment-1025443201
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/screen-orientation/issues/206/1025443201@github.com>

Received on Monday, 31 January 2022 07:14:57 UTC